mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavfi/video: ensure that filter_frame is called.
This is a temporary workaround until all filters have been upgraded to filter_frame and the framework can forget completely about start_frame/draw_slice/end_frame.
This commit is contained in:
parent
522cb6abf2
commit
a978c04e22
@ -163,6 +163,9 @@ static int default_start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
|
||||
{
|
||||
AVFilterLink *outlink = NULL;
|
||||
|
||||
if (inlink->dstpad->filter_frame)
|
||||
return 0;
|
||||
|
||||
if (inlink->dst->nb_outputs)
|
||||
outlink = inlink->dst->outputs[0];
|
||||
|
||||
@ -275,6 +278,12 @@ static int default_end_frame(AVFilterLink *inlink)
|
||||
{
|
||||
AVFilterLink *outlink = NULL;
|
||||
|
||||
if (inlink->dstpad->filter_frame) {
|
||||
int ret = inlink->dstpad->filter_frame(inlink, inlink->cur_buf);
|
||||
inlink->cur_buf = NULL;
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (inlink->dst->nb_outputs)
|
||||
outlink = inlink->dst->outputs[0];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user