ffmdec: Check return value of ffm_append_recommended_configuration
authorHimangi Saraogi <himangi774@gmail.com>
Wed, 8 Apr 2015 22:55:04 +0000 (04:25 +0530)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 10 Apr 2015 12:44:53 +0000 (14:44 +0200)
Reviewed-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/ffmdec.c

index 33bbde0..7c0f451 100644 (file)
@@ -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);