[FFmpeg-cvslog] ffmdec: Check return value of ffm_append_recommended_configuration
Himangi Saraogi
git at videolan.org
Fri Apr 10 14:53:47 CEST 2015
ffmpeg | branch: master | Himangi Saraogi <himangi774 at gmail.com> | Thu Apr 9 04:43:04 2015 +0530| [8d15de7eb265fdd81211190d5ef3f9d1665770bf] | committer: Michael Niedermayer
ffmdec: Check return value of ffm_append_recommended_configuration
Reviewed-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8d15de7eb265fdd81211190d5ef3f9d1665770bf
---
libavformat/ffmdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c
index 33bbde0..7c0f451 100644
--- a/libavformat/ffmdec.c
+++ b/libavformat/ffmdec.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list