[SCM] libav/experimental: In crop filter, update new ref w/h instead of old one, fix chaining

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:21:21 UTC 2013


The following commit has been merged in the experimental branch:
commit d34a77fb093b410e779d5c7bcf7c2692c175e5c3
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date:   Wed Jan 5 01:00:53 2011 +0000

    In crop filter, update new ref w/h instead of old one, fix chaining
    
    Originally committed as revision 26216 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index c9b76f6..e768fbb 100644
--- a/libavfilter/vf_crop.c
+++ b/libavfilter/vf_crop.c
@@ -242,10 +242,9 @@ static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
     AVFilterBufferRef *ref2;
     int i;
 
-    picref->video->w = crop->w;
-    picref->video->h = crop->h;
-
     ref2 = avfilter_ref_buffer(picref, ~0);
+    ref2->video->w = crop->w;
+    ref2->video->h = crop->h;
 
     crop->var_values[VAR_T] = picref->pts == AV_NOPTS_VALUE ?
         NAN : picref->pts * av_q2d(link->time_base);

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list