mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-23 19:31:44 +00:00
Refuse AAC codec data where the profile id is 0.
This commit is contained in:
parent
7aaa57b0e0
commit
9e6a80158e
@ -217,7 +217,10 @@ parse_aac_data(unsigned char *data,
|
||||
mxverb(4, "%02x ", data[i]);
|
||||
mxverb(4, "\n");
|
||||
|
||||
profile = (data[0] >> 3) - 1;
|
||||
profile = data[0] >> 3;
|
||||
if (0 == profile)
|
||||
return false;
|
||||
--profile;
|
||||
sample_rate = aac_sampling_freq[((data[0] & 0x07) << 1) | (data[1] >> 7)];
|
||||
channels = (data[1] & 0x7f) >> 3;
|
||||
if (size == 5) {
|
||||
|
Loading…
Reference in New Issue
Block a user