avconv: use the correct variable in comparison
authorAnton Khirnov <anton@khirnov.net>
Sat, 14 Jun 2014 19:43:36 +0000 (21:43 +0200)
committerAnton Khirnov <anton@khirnov.net>
Tue, 17 Jun 2014 07:01:26 +0000 (09:01 +0200)
avconv.c

index 0fac5c6..b29f200 100644 (file)
--- a/avconv.c
+++ b/avconv.c
@@ -2104,7 +2104,7 @@ static int transcode_init(void)
             if (out_codec) {
                 encoder_name   = out_codec->name;
                 out_codec_name = avcodec_descriptor_get(out_codec->id)->name;
-                if (!strcmp(encoder_name, in_codec_name))
+                if (!strcmp(encoder_name, out_codec_name))
                     encoder_name = "native";
             }