Commit 3be625e2 authored by stefano's avatar stefano

Make avfilter_default_start_frame() request a buffer with the same

size of the output link of the destination filter, rather than of the
size of the input link.
In particular this fixes a crash in the rotate filter.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21238 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3cf86fd0
...@@ -72,7 +72,7 @@ void avfilter_default_start_frame(AVFilterLink *link, AVFilterPicRef *picref) ...@@ -72,7 +72,7 @@ void avfilter_default_start_frame(AVFilterLink *link, AVFilterPicRef *picref)
out = link->dst->outputs[0]; out = link->dst->outputs[0];
if(out) { if(out) {
out->outpic = avfilter_get_video_buffer(out, AV_PERM_WRITE, link->w, link->h); out->outpic = avfilter_get_video_buffer(out, AV_PERM_WRITE, out->w, out->h);
out->outpic->pts = picref->pts; out->outpic->pts = picref->pts;
avfilter_start_frame(out, avfilter_ref_pic(out->outpic, ~0)); avfilter_start_frame(out, avfilter_ref_pic(out->outpic, ~0));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment