From 190a5893d189cc5efbb41069901c1066e58910c9 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 9 Aug 2013 09:28:11 +0200 Subject: [PATCH] avfilter/fifo: explicitly assert that a frame should have become available after request May help tools like coverity Signed-off-by: Michael Niedermayer --- libavfilter/fifo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/fifo.c b/libavfilter/fifo.c index efc89685c9..c6beaf6937 100644 --- a/libavfilter/fifo.c +++ b/libavfilter/fifo.c @@ -201,6 +201,7 @@ static int return_audio_frame(AVFilterContext *ctx) break; } else if (ret < 0) return ret; + av_assert0(s->root.next); // If ff_request_frame() succeeded then we should have a frame } head = s->root.next->frame;