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

diff --git a/avconv.c b/avconv.c
index 16327cc..02e78f6 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;
@@ -2370,10 +2369,9 @@ static int transcode_init(OutputFile *output_files,
                     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;
                 }
 
-- 
1.7.9.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to