Commit 4d57ca51 authored by Tobias Rapp's avatar Tobias Rapp Committed by Michael Niedermayer

ffmpeg: assert return value is initialized

Signed-off-by: 's avatarTobias Rapp <t.rapp@noa-archive.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent d44af9a3
...@@ -2070,6 +2070,7 @@ static int send_frame_to_filters(InputStream *ist, AVFrame *decoded_frame) ...@@ -2070,6 +2070,7 @@ static int send_frame_to_filters(InputStream *ist, AVFrame *decoded_frame)
int i, ret; int i, ret;
AVFrame *f; AVFrame *f;
av_assert1(ist->nb_filters > 0); /* ensure ret is initialized */
for (i = 0; i < ist->nb_filters; i++) { for (i = 0; i < ist->nb_filters; i++) {
if (i < ist->nb_filters - 1) { if (i < ist->nb_filters - 1) {
f = ist->filter_frame; f = ist->filter_frame;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment