Browse code

avfilter/fifo: explicitly assert that a frame should have become available after request

May help tools like coverity

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2013/08/09 16:28:11
Showing 1 changed files
... ...
@@ -201,6 +201,7 @@ static int return_audio_frame(AVFilterContext *ctx)
201 201
                     break;
202 202
                 } else if (ret < 0)
203 203
                     return ret;
204
+                av_assert0(s->root.next); // If ff_request_frame() succeeded then we should have a frame
204 205
             }
205 206
             head = s->root.next->frame;
206 207