summaryrefslogtreecommitdiff
path: root/libavfilter/vf_crop.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2011-01-05 01:00:53 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2011-01-05 01:00:53 +0000
commitd34a77fb093b410e779d5c7bcf7c2692c175e5c3 (patch)
treebfbd7e87a2850a0f285b24b0c7039c7754f5a19c /libavfilter/vf_crop.c
parente27bf2c70cb41ae12bd882fa3bc4ccac3ca5edf7 (diff)
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
Diffstat (limited to 'libavfilter/vf_crop.c')
-rw-r--r--libavfilter/vf_crop.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index c9b76f626b..e768fbb594 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);