Commit 8d15de7e authored by Himangi Saraogi's avatar Himangi Saraogi Committed by Michael Niedermayer

ffmdec: Check return value of ffm_append_recommended_configuration

Reviewed-by: 's avatarLukasz Marek <lukasz.m.luki2@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent aae9f52c
......@@ -438,7 +438,8 @@ static int ffm2_read_header(AVFormatContext *s)
}
avio_get_str(pb, INT_MAX, buffer, size);
av_set_options_string(codec, buffer, "=", ",");
ffm_append_recommended_configuration(st, &buffer);
if ((ret = ffm_append_recommended_configuration(st, &buffer)) < 0)
goto fail;
break;
}
avio_seek(pb, next, SEEK_SET);
......
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