[FFmpeg-cvslog] avconv: remove pointless always true condition

Anton Khirnov git at videolan.org
Mon Oct 10 03:59:50 CEST 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Sep 27 08:21:48 2011 +0200| [515901fad2ee0f2429d6b457bb4e4f6a5fd98028] | committer: Anton Khirnov

avconv: remove pointless always true condition

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=515901fad2ee0f2429d6b457bb4e4f6a5fd98028
---

 avconv.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/avconv.c b/avconv.c
index 058c0ee..d2cb69f 100644
--- 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;
 



More information about the ffmpeg-cvslog mailing list