You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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
This commit is contained in:
@@ -242,10 +242,9 @@ static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
|
|||||||
AVFilterBufferRef *ref2;
|
AVFilterBufferRef *ref2;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
picref->video->w = crop->w;
|
|
||||||
picref->video->h = crop->h;
|
|
||||||
|
|
||||||
ref2 = avfilter_ref_buffer(picref, ~0);
|
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 ?
|
crop->var_values[VAR_T] = picref->pts == AV_NOPTS_VALUE ?
|
||||||
NAN : picref->pts * av_q2d(link->time_base);
|
NAN : picref->pts * av_q2d(link->time_base);
|
||||||
|
Reference in New Issue
Block a user