Refuse AAC codec data where the profile id is 0.

This commit is contained in:
Moritz Bunkus 2005-04-28 14:50:43 +00:00
parent 7aaa57b0e0
commit 9e6a80158e

View File

@ -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) {