[SCM] libav/experimental: Update frame_width and frame_height based on the lowres value. Fixes issues 1387, 1097 and probably some other lowres related problems.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:55:35 UTC 2013


The following commit has been merged in the experimental branch:
commit 3394653306b773de529e779394de926588cc4096
Author: Jai Menon <jmenon86 at gmail.com>
Date:   Sat Dec 5 17:51:00 2009 +0000

    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

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;
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list