[FFmpeg-cvslog] avfilter/fifo: explicitly assert that a frame should have become available after request
Michael Niedermayer
git at videolan.org
Fri Aug 9 09:43:28 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Aug 9 09:28:11 2013 +0200| [190a5893d189cc5efbb41069901c1066e58910c9] | committer: Michael Niedermayer
avfilter/fifo: explicitly assert that a frame should have become available after request
May help tools like coverity
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=190a5893d189cc5efbb41069901c1066e58910c9
---
libavfilter/fifo.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/fifo.c b/libavfilter/fifo.c
index efc8968..c6beaf6 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;
More information about the ffmpeg-cvslog
mailing list