diff options
author | James Almer <jamrial@gmail.com> | 2017-11-24 17:55:05 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-11-25 23:15:28 -0300 |
commit | 08b294bf5f4e76ca9217e3206224441048d0f843 (patch) | |
tree | edbe896423a828f80002de7ed22dd7eefb9c3ff9 /libavformat/isom.c | |
parent | 8794e0c0372c716ee1d97b59e8156c34d29fdc37 (diff) | |
download | ffmpeg-08b294bf5f4e76ca9217e3206224441048d0f843.tar.gz |
avformat/isom: return proper error values in 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/isom.c')
-rw-r--r-- | libavformat/isom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/isom.c b/libavformat/isom.c index 77983c5eaa..9d9f85885b 100644 --- a/libavformat/isom.c +++ b/libavformat/isom.c @@ -524,7 +524,7 @@ FF_ENABLE_DEPRECATION_WARNINGS if (tag == MP4DecSpecificDescrTag) { av_log(fc, AV_LOG_TRACE, "Specific MPEG-4 header len=%d\n", len); if (!len || (uint64_t)len > (1<<30)) - return -1; + return AVERROR_INVALIDDATA; av_free(st->codecpar->extradata); if ((ret = ff_get_extradata(fc, st->codecpar, pb, len)) < 0) return ret; |