ffmpeg: assert return value is initialized
authorTobias Rapp <t.rapp@noa-archive.com>
Thu, 24 Nov 2016 14:45:00 +0000 (15:45 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 1 Dec 2016 11:01:51 +0000 (12:01 +0100)
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffmpeg.c

index c47a824..e4890a4 100644 (file)
--- 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;