OSDN Git Service

Turn on resampling on sudden size change instead of bailing out during recode.
authorKostya <kostya.shishkov@gmail.com>
Sat, 13 Aug 2011 16:44:21 +0000 (16:44 +0000)
committerAnton Khirnov <anton@khirnov.net>
Mon, 15 Aug 2011 09:53:45 +0000 (11:53 +0200)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
avconv.c

index 18c5f07..74db59f 100644 (file)
--- a/avconv.c
+++ b/avconv.c
@@ -1186,7 +1186,7 @@ static void do_video_out(AVFormatContext *s,
                ost->resample_width, ost->resample_height, av_get_pix_fmt_name(ost->resample_pix_fmt),
                dec->width         , dec->height         , av_get_pix_fmt_name(dec->pix_fmt));
         if(!ost->video_resample)
-            exit_program(1);
+            ost->video_resample = 1;
     }
 
 #if !CONFIG_AVFILTER