summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Rapp <[email protected]>2016-11-24 15:45:00 +0100
committerMichael Niedermayer <[email protected]>2016-12-01 12:01:51 +0100
commit4d57ca51d7afb05bfa8c9a889822253dfc239a0d (patch)
treecb25478be15b25238b87e5604ae46674235c7e35
parentd44af9a38e6b116e1a89b2862f4d4f8cb9855387 (diff)
ffmpeg: assert return value is initialized
Signed-off-by: Tobias Rapp <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index c47a824fb0..e4890a4034 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;