diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2013-01-31 17:49:43 +0400 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2013-02-01 00:03:54 +0400 |
commit | d2ccab5f8a5f9121200b85c2fd8ef35916b1bf62 (patch) | |
tree | b18015f351b904bf9b6d7dd7017b270545084a87 /libavfilter/buffersrc.c | |
parent | dcce43340f454626c0462ec18fa911dc8280a8c2 (diff) |
lavfi/buffersrc: forward filter_frame errors.
Note: The ret variable was unused.
Diffstat (limited to 'libavfilter/buffersrc.c')
-rw-r--r-- | libavfilter/buffersrc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index 074d43a674..3fdf8d3fe3 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -384,7 +384,6 @@ static int request_frame(AVFilterLink *link) { BufferSourceContext *c = link->src->priv; AVFilterBufferRef *buf; - int ret = 0; if (!av_fifo_size(c->fifo)) { if (c->eof) @@ -394,9 +393,7 @@ static int request_frame(AVFilterLink *link) } av_fifo_generic_read(c->fifo, &buf, sizeof(buf), NULL); - ff_filter_frame(link, buf); - - return ret; + return ff_filter_frame(link, buf); } static int poll_frame(AVFilterLink *link) |