Commit abf66947 authored by James Almer's avatar James Almer

avformat/mov_esds: check return value of ff_mp4_read_dec_config_descr

Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 08b294bf
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
int ff_mov_read_esds(AVFormatContext *fc, AVIOContext *pb) int ff_mov_read_esds(AVFormatContext *fc, AVIOContext *pb)
{ {
AVStream *st; AVStream *st;
int tag; int tag, ret = 0;
if (fc->nb_streams < 1) if (fc->nb_streams < 1)
return 0; return 0;
...@@ -38,6 +38,7 @@ int ff_mov_read_esds(AVFormatContext *fc, AVIOContext *pb) ...@@ -38,6 +38,7 @@ int ff_mov_read_esds(AVFormatContext *fc, AVIOContext *pb)
ff_mp4_read_descr(fc, pb, &tag); ff_mp4_read_descr(fc, pb, &tag);
if (tag == MP4DecConfigDescrTag) if (tag == MP4DecConfigDescrTag)
ff_mp4_read_dec_config_descr(fc, st, pb); ret = ff_mp4_read_dec_config_descr(fc, st, pb);
return 0;
return ret;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment