Revision b7be04f3 libavfilter/vf_aspect.c

View differences:

libavfilter/vf_aspect.c
47 47
            return AVERROR(EINVAL);
48 48
        }
49 49

  
50
            gcd = av_gcd(FFABS(aspect->aspect.num), FFABS(aspect->aspect.den));
51
            if (gcd) {
52
                aspect->aspect.num /= gcd;
53
                aspect->aspect.den /= gcd;
54
            }
50
        gcd = av_gcd(FFABS(aspect->aspect.num), FFABS(aspect->aspect.den));
51
        if (gcd) {
52
            aspect->aspect.num /= gcd;
53
            aspect->aspect.den /= gcd;
54
        }
55 55
    }
56 56

  
57 57
    if (aspect->aspect.den == 0)

Also available in: Unified diff