[FFmpeg-cvslog] avformat/mov_esds: check return value of ff_mp4_read_dec_config_descr

James Almer git at videolan.org
Sun Nov 26 04:16:22 EET 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Nov 24 17:55:19 2017 -0300| [abf669479c0098ab5eb184a167e57a70aabb942b] | committer: James Almer

avformat/mov_esds: check return value of ff_mp4_read_dec_config_descr

Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=abf669479c0098ab5eb184a167e57a70aabb942b
---

 libavformat/mov_esds.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/libavformat/mov_esds.c b/libavformat/mov_esds.c
index 2ecf03742f..a444d969c6 100644
--- a/libavformat/mov_esds.c
+++ b/libavformat/mov_esds.c
@@ -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;
 }



More information about the ffmpeg-cvslog mailing list