[FFmpeg-cvslog] r25818 - trunk/libavfilter/vf_crop.c
bcoudurier
subversion
Wed Nov 24 02:32:50 CET 2010
Author: bcoudurier
Date: Wed Nov 24 02:32:49 2010
New Revision: 25818
Log:
In crop filter, reference picref after updating w/h, fix issue #2377
Modified:
trunk/libavfilter/vf_crop.c
Modified: trunk/libavfilter/vf_crop.c
==============================================================================
--- trunk/libavfilter/vf_crop.c Tue Nov 23 22:08:22 2010 (r25817)
+++ trunk/libavfilter/vf_crop.c Wed Nov 24 02:32:49 2010 (r25818)
@@ -237,12 +237,14 @@ static void start_frame(AVFilterLink *li
{
AVFilterContext *ctx = link->dst;
CropContext *crop = ctx->priv;
- AVFilterBufferRef *ref2 = avfilter_ref_buffer(picref, ~0);
+ AVFilterBufferRef *ref2;
int i;
picref->video->w = crop->w;
picref->video->h = crop->h;
+ ref2 = avfilter_ref_buffer(picref, ~0);
+
crop->var_values[VAR_T] = picref->pts == AV_NOPTS_VALUE ?
NAN : picref->pts * av_q2d(link->time_base);
crop->var_values[VAR_POS] = picref->pos == -1 ? NAN : picref->pos;
More information about the ffmpeg-cvslog
mailing list