[FFmpeg-cvslog] r20741 - trunk/ffmpeg.c

jai_menon subversion
Sat Dec 5 18:51:00 CET 2009


Author: jai_menon
Date: Sat Dec  5 18:51:00 2009
New Revision: 20741

Log:
Update frame_width and frame_height based on the lowres value.
Fixes issues 1387, 1097 and probably some other lowres related problems.

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Sat Dec  5 16:14:01 2009	(r20740)
+++ trunk/ffmpeg.c	Sat Dec  5 18:51:00 2009	(r20741)
@@ -2944,7 +2944,11 @@ static void opt_input_file(const char *f
             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;
 



More information about the ffmpeg-cvslog mailing list