1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

ffmdec: Check return value of ffm_append_recommended_configuration

Reviewed-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Himangi Saraogi
2015-04-09 04:25:04 +05:30
committed by Michael Niedermayer
parent aae9f52c4e
commit 8d15de7eb2

View File

@@ -438,7 +438,8 @@ static int ffm2_read_header(AVFormatContext *s)
} }
avio_get_str(pb, INT_MAX, buffer, size); avio_get_str(pb, INT_MAX, buffer, size);
av_set_options_string(codec, buffer, "=", ","); av_set_options_string(codec, buffer, "=", ",");
ffm_append_recommended_configuration(st, &buffer); if ((ret = ffm_append_recommended_configuration(st, &buffer)) < 0)
goto fail;
break; break;
} }
avio_seek(pb, next, SEEK_SET); avio_seek(pb, next, SEEK_SET);