]> git.sesse.net Git - ffmpeg/commitdiff
avconv: remove a useless variable from OutputStream.
authorAnton Khirnov <anton@khirnov.net>
Fri, 23 Mar 2012 19:59:09 +0000 (20:59 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sun, 15 Apr 2012 18:22:36 +0000 (20:22 +0200)
avconv.c

index fa2634cd7ef40f367116da569fcbffb9f2572338..c7b4cbd03d27b75b13d1b3b2816c2b79cb8b5e76 100644 (file)
--- 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;
                 }