summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-02-15 21:36:17 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-02-15 21:36:17 +0000
commit9586ba3a13d0a5b8a0d44163070e96b66818d502 (patch)
treedece071821f676517900e773b5953587fd4fa7f1 /libavfilter/avfilter.c
parent3628fbe0920484c0d11747e077af7af6a32b3e5b (diff)
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
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r--libavfilter/avfilter.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 001c729f14..872d62fc60 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -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