Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2015-04-09 01:55:04 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-04-10 15:44:53 +0300
commit8d15de7eb265fdd81211190d5ef3f9d1665770bf (patch)
tree24b0e4879e8843195627bc3a5538326737a01d9a /libavformat/ffmdec.c
parentaae9f52c4efa4c185f8919dcc6d8c6f25c1df9e5 (diff)
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>
Diffstat (limited to 'libavformat/ffmdec.c')
-rw-r--r--libavformat/ffmdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c
index 33bbde04b0..7c0f4510dc 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);