Commit 4695ee71 authored by Michael Niedermayer's avatar Michael Niedermayer

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

We would crash a moment later anyway if this fails.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 304ebed5
...@@ -239,6 +239,7 @@ static int request_frame(AVFilterLink *outlink) ...@@ -239,6 +239,7 @@ static int request_frame(AVFilterLink *outlink)
if (!fifo->root.next) { if (!fifo->root.next) {
if ((ret = ff_request_frame(outlink->src->inputs[0])) < 0) if ((ret = ff_request_frame(outlink->src->inputs[0])) < 0)
return ret; return ret;
av_assert0(fifo->root.next);
} }
/* by doing this, we give ownership of the reference to the next filter, /* by doing this, we give ownership of the reference to the next filter,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment