[FFmpeg-devel] [PATCH] lavf/segment: abort in case of invalid segment format options

Stefano Sabatini stefasab at gmail.com
Mon Sep 8 12:49:38 CEST 2014


---
 libavformat/segment.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/segment.c b/libavformat/segment.c
index 00e5881..72977b1 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -662,6 +662,8 @@ static int seg_write_header(AVFormatContext *s)
     if (av_dict_count(options)) {
         av_log(s, AV_LOG_ERROR,
                "Some of the provided format options in '%s' are not recognized\n", seg->format_options_str);
+        ret = AVERROR(EINVAL);
+        goto fail;
     }
     av_dict_free(&options);
     if (ret < 0) {
-- 
1.8.3.2



More information about the ffmpeg-devel mailing list