aacparse: wrong src caps profile for ADIF format aac clips
Submitted by Lyon
Link to original bug (#783583)
Description
Created attachment 353443
ADIF sample clip
When I am trying to play some ADIF aac clips with LC profile, and the src caps output from aacparse is Main profile.
Checked the aacparse, for ADIF stream, the object_type is got as:
aacparse->object_type = ((adif[6 + skip_size] & 0x01) << 1) |
((adif[7 + skip_size] & 0x80) >> 7)
and in spec this object_type definition as below:
index object_type
0 AAC Main
1 AAC LC
2 AAC SSR
3 AAC LTP
in aacparse to determine the profile, code as below:
switch (profile) {
case 1:
return "main";
case 2:
return "lc";
case 3:
return "ssr";
case 4:
return "ltp";
default:
break;
}
So actually here, aacparse->object_type need plus 1 to determine the profile (just as for ADTS stream.)
Attachment 353443, "ADIF sample clip":
AAC_LC_44kHz_64kbps_1_ADIF.aac
Version: 1.12.0