lavfi/buffersrc: forward filter_frame errors.
authorNicolas George <nicolas.george@normalesup.org>
Thu, 31 Jan 2013 13:49:43 +0000 (14:49 +0100)
committerNicolas George <nicolas.george@normalesup.org>
Thu, 31 Jan 2013 20:03:54 +0000 (21:03 +0100)
Note: The ret variable was unused.

libavfilter/buffersrc.c

index 074d43a..3fdf8d3 100644 (file)
@@ -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)