summaryrefslogtreecommitdiffstats
path: root/libavformat/mov_esds.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-11-24 17:55:19 -0300
committerJames Almer <jamrial@gmail.com>2017-11-25 23:15:28 -0300
commitabf669479c0098ab5eb184a167e57a70aabb942b (patch)
treee7845cb5f190bf19f97bc789ec9c7e8ca94671bd /libavformat/mov_esds.c
parent08b294bf5f4e76ca9217e3206224441048d0f843 (diff)
downloadffmpeg-streaming-abf669479c0098ab5eb184a167e57a70aabb942b.zip
ffmpeg-streaming-abf669479c0098ab5eb184a167e57a70aabb942b.tar.gz
avformat/mov_esds: check return value of ff_mp4_read_dec_config_descr
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/mov_esds.c')
-rw-r--r--libavformat/mov_esds.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/mov_esds.c b/libavformat/mov_esds.c
index 2ecf037..a444d96 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;
}
OpenPOWER on IntegriCloud