[FFmpeg-cvslog] lavfi/buffersrc: forward filter_frame errors.
Nicolas George
git at videolan.org
Thu Jan 31 21:15:44 CET 2013
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Thu Jan 31 14:49:43 2013 +0100| [d2ccab5f8a5f9121200b85c2fd8ef35916b1bf62] | committer: Nicolas George
lavfi/buffersrc: forward filter_frame errors.
Note: The ret variable was unused.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d2ccab5f8a5f9121200b85c2fd8ef35916b1bf62
---
libavfilter/buffersrc.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index 074d43a..3fdf8d3 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)
More information about the ffmpeg-cvslog
mailing list