avconv: remove pointless always true condition
authorAnton Khirnov <anton@khirnov.net>
Tue, 27 Sep 2011 06:21:48 +0000 (08:21 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 9 Oct 2011 15:15:18 +0000 (17:15 +0200)
avconv.c

index 058c0ee..d2cb69f 100644 (file)
--- a/avconv.c
+++ b/avconv.c
@@ -2157,8 +2157,7 @@ static int transcode_init(OutputFile *output_files,
                 break;
             }
             /* two pass mode */
-            if (ost->encoding_needed &&
-                (codec->flags & (CODEC_FLAG_PASS1 | CODEC_FLAG_PASS2))) {
+            if ((codec->flags & (CODEC_FLAG_PASS1 | CODEC_FLAG_PASS2))) {
                 char logfilename[1024];
                 FILE *f;