Browse Source

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>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
4695ee71b0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavfilter/fifo.c

+ 1
- 0
libavfilter/fifo.c View File

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


Loading…
Cancel
Save