1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-11-01 18:02:23 +01:00
parent 304ebed586
commit 4695ee71b0

View 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,