[FFmpeg-cvslog] lavfi/fifo: add assert to ensure request was successfull.

Michael Niedermayer git at videolan.org
Thu Nov 1 18:06:31 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Nov  1 18:02:23 2012 +0100| [4695ee71b0178d98a1f4974acdf112db83419665] | committer: Michael Niedermayer

lavfi/fifo: add assert to ensure request was successfull.

We would crash a moment later anyway if this fails.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4695ee71b0178d98a1f4974acdf112db83419665
---

 libavfilter/fifo.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/fifo.c b/libavfilter/fifo.c
index e05f982..75f9ddb 100644
--- a/libavfilter/fifo.c
+++ b/libavfilter/fifo.c
@@ -239,6 +239,7 @@ static int request_frame(AVFilterLink *outlink)
     if (!fifo->root.next) {
         if ((ret = ff_request_frame(outlink->src->inputs[0])) < 0)
             return ret;
+        av_assert0(fifo->root.next);
     }
 
     /* by doing this, we give ownership of the reference to the next filter,



More information about the ffmpeg-cvslog mailing list