lavfi/buffersrc: raise filter_frame() error.
This commit is contained in:
parent
27ce858c98
commit
bdbdadbaff
@ -500,7 +500,6 @@ static int request_frame(AVFilterLink *link)
|
|||||||
{
|
{
|
||||||
BufferSourceContext *c = link->src->priv;
|
BufferSourceContext *c = link->src->priv;
|
||||||
AVFrame *frame;
|
AVFrame *frame;
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
if (!av_fifo_size(c->fifo)) {
|
if (!av_fifo_size(c->fifo)) {
|
||||||
if (c->eof)
|
if (c->eof)
|
||||||
@ -510,10 +509,7 @@ static int request_frame(AVFilterLink *link)
|
|||||||
}
|
}
|
||||||
av_fifo_generic_read(c->fifo, &frame, sizeof(frame), NULL);
|
av_fifo_generic_read(c->fifo, &frame, sizeof(frame), NULL);
|
||||||
|
|
||||||
/* CIG TODO do not ignore error */
|
return ff_filter_frame(link, frame);
|
||||||
ff_filter_frame(link, frame);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int poll_frame(AVFilterLink *link)
|
static int poll_frame(AVFilterLink *link)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user