]> git.sesse.net Git - ffmpeg/commitdiff
avformat/mov_esds: check return value of ff_mp4_read_dec_config_descr
authorJames Almer <jamrial@gmail.com>
Fri, 24 Nov 2017 20:55:19 +0000 (17:55 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 26 Nov 2017 02:15:28 +0000 (23:15 -0300)
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/mov_esds.c

index 2ecf03742f119e430250ce891bd67fcacbce32f0..a444d969c65e4fa10b9b4013dbf50b54443c0dcf 100644 (file)
@@ -23,7 +23,7 @@
 int ff_mov_read_esds(AVFormatContext *fc, AVIOContext *pb)
 {
     AVStream *st;
-    int tag;
+    int tag, ret = 0;
 
     if (fc->nb_streams < 1)
         return 0;
@@ -38,6 +38,7 @@ int ff_mov_read_esds(AVFormatContext *fc, AVIOContext *pb)
 
     ff_mp4_read_descr(fc, pb, &tag);
     if (tag == MP4DecConfigDescrTag)
-        ff_mp4_read_dec_config_descr(fc, st, pb);
-    return 0;
+        ret = ff_mp4_read_dec_config_descr(fc, st, pb);
+
+    return ret;
 }