Fix lowres > 0 with --enable-avfilter..
authorAnatoly Nenashev <nenashev_as@mail.ru>
Fri, 7 Jan 2011 10:16:00 +0000 (10:16 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Fri, 7 Jan 2011 10:16:00 +0000 (10:16 +0000)
Fixes issue 2072 and issue 2421.

Patch by Anatoly Nenashev, anatoly d nenashev a ovsoft d ru

Originally committed as revision 26252 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index 7e2d82a..08a50d5 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3274,6 +3274,8 @@ static void opt_input_file(const char *filename)
                 dec->flags |= CODEC_FLAG_EMU_EDGE;
                 frame_height >>= dec->lowres;
                 frame_width  >>= dec->lowres;
+                dec->height = frame_height;
+                dec->width  = frame_width;
             }
             if(me_threshold)
                 dec->debug |= FF_DEBUG_MV;