[FFmpeg-cvslog] avconv: remove a useless variable from OutputStream.

Anton Khirnov git at videolan.org
Tue Apr 17 04:51:56 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Mar 23 20:59:09 2012 +0100| [9dced8542618c12e0496e7db3067a61ba9080a45] | committer: Anton Khirnov

avconv: remove a useless variable from OutputStream.

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

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

diff --git a/avconv.c b/avconv.c
index fa2634c..c7b4cbd 100644
--- a/avconv.c
+++ b/avconv.c
@@ -215,7 +215,6 @@ typedef struct OutputStream {
     AVFrame *output_frame;
 
     /* video only */
-    int video_resample;
     int resample_height;
     int resample_width;
     int resample_pix_fmt;
@@ -2422,10 +2421,9 @@ static int transcode_init(void)
                     exit(1);
                 }
 
-                ost->video_resample = codec->width   != icodec->width  ||
-                                      codec->height  != icodec->height ||
-                                      codec->pix_fmt != icodec->pix_fmt;
-                if (ost->video_resample) {
+                if (codec->width   != icodec->width  ||
+                    codec->height  != icodec->height ||
+                    codec->pix_fmt != icodec->pix_fmt) {
                     codec->bits_per_raw_sample = 0;
                 }
 



More information about the ffmpeg-cvslog mailing list