mirror of https://git.ffmpeg.org/ffmpeg.git
Provide a default for request_frame() which does the right thing for simple
filters. Commited in SoC by Bobby Bingham on 2007-07-08 16:55:09 Originally committed as revision 11983 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3628fbe092
commit
9586ba3a13
|
@ -191,7 +191,12 @@ AVFilterPicRef *avfilter_get_video_buffer(AVFilterLink *link, int perms)
|
|||
|
||||
void avfilter_request_frame(AVFilterLink *link)
|
||||
{
|
||||
link->src->filter->outputs[link->srcpad].request_frame(link);
|
||||
const AVFilterPad *pad = &link->src->filter->outputs[link->srcpad];
|
||||
|
||||
if(pad->request_frame)
|
||||
pad->request_frame(link);
|
||||
else if(link->src->inputs[0])
|
||||
avfilter_request_frame(link->src->inputs[0]);
|
||||
}
|
||||
|
||||
/* XXX: should we do the duplicating of the picture ref here, instead of
|
||||
|
|
Loading…
Reference in New Issue