lavfi/fifo: add assert to ensure request was successfull.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 1 Nov 2012 17:02:23 +0000 (18:02 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 1 Nov 2012 17:02:23 +0000 (18:02 +0100)
We would crash a moment later anyway if this fails.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/fifo.c

index e05f982..75f9ddb 100644 (file)
@@ -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,