[FFmpeg-cvslog] ffmpeg: assert return value is initialized
Tobias Rapp
git at videolan.org
Thu Dec 1 13:02:16 EET 2016
ffmpeg | branch: master | Tobias Rapp <t.rapp at noa-archive.com> | Thu Nov 24 15:45:00 2016 +0100| [4d57ca51d7afb05bfa8c9a889822253dfc239a0d] | committer: Michael Niedermayer
ffmpeg: assert return value is initialized
Signed-off-by: Tobias Rapp <t.rapp at noa-archive.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4d57ca51d7afb05bfa8c9a889822253dfc239a0d
---
ffmpeg.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ffmpeg.c b/ffmpeg.c
index c47a824..e4890a4 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2070,6 +2070,7 @@ static int send_frame_to_filters(InputStream *ist, AVFrame *decoded_frame)
int i, ret;
AVFrame *f;
+ av_assert1(ist->nb_filters > 0); /* ensure ret is initialized */
for (i = 0; i < ist->nb_filters; i++) {
if (i < ist->nb_filters - 1) {
f = ist->filter_frame;
More information about the ffmpeg-cvslog
mailing list