lavf/mux: Fix a typo checking aspect ratios.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 30 Jul 2014 09:03:29 +0000 (11:03 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 30 Jul 2014 09:03:29 +0000 (11:03 +0200)
Fixes ticket #3813.

libavformat/mux.c

index b264ce0..be72d91 100644 (file)
@@ -291,7 +291,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
             ) {
                 if (st->sample_aspect_ratio.num != 0 &&
                     st->sample_aspect_ratio.den != 0 &&
-                    codec->sample_aspect_ratio.den != 0 &&
+                    codec->sample_aspect_ratio.num != 0 &&
                     codec->sample_aspect_ratio.den != 0) {
                     av_log(s, AV_LOG_ERROR, "Aspect ratio mismatch between muxer "
                            "(%d/%d) and encoder layer (%d/%d)\n",