From 3394653306b773de529e779394de926588cc4096 Mon Sep 17 00:00:00 2001 From: Jai Menon Date: Sat, 5 Dec 2009 17:51:00 +0000 Subject: Update frame_width and frame_height based on the lowres value. Fixes issues 1387, 1097 and probably some other lowres related problems. Originally committed as revision 20741 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ffmpeg.c') diff --git a/ffmpeg.c b/ffmpeg.c index fe5d212..a87fb81 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2944,7 +2944,11 @@ static void opt_input_file(const char *filename) frame_pix_fmt = enc->pix_fmt; rfps = ic->streams[i]->r_frame_rate.num; rfps_base = ic->streams[i]->r_frame_rate.den; - if(enc->lowres) enc->flags |= CODEC_FLAG_EMU_EDGE; + if(enc->lowres) { + enc->flags |= CODEC_FLAG_EMU_EDGE; + frame_height >>= enc->lowres; + frame_width >>= enc->lowres; + } if(me_threshold) enc->debug |= FF_DEBUG_MV; -- cgit v1.1