mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavf/mov: skip extradata check in esds for MPEG-1/2 audio
As per 14496-3 9.D.2.2, it's not defined for these audio object types. Fixes #7817.
This commit is contained in:
parent
b43b8d337d
commit
8eca42e632
@ -534,6 +534,10 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
len = ff_mp4_read_descr(fc, pb, &tag);
|
||||
if (tag == MP4DecSpecificDescrTag) {
|
||||
av_log(fc, AV_LOG_TRACE, "Specific MPEG-4 header len=%d\n", len);
|
||||
/* As per 14496-3:2009 9.D.2.2, No decSpecificInfo is defined
|
||||
for MPEG-1 Audio or MPEG-2 Audio; MPEG-2 AAC excluded. */
|
||||
if (object_type_id == 0x69 || object_type_id == 0x6b)
|
||||
return 0;
|
||||
if (!len || (uint64_t)len > (1<<30))
|
||||
return AVERROR_INVALIDDATA;
|
||||
if ((ret = ff_get_extradata(fc, st->codecpar, pb, len)) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user