[Bug 783583] aacparse: wrong src caps profile for ADIF format aac clips
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Jun 14 06:38:04 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=783583
--- Comment #3 from Lyon <lyon.wang at nxp.com> ---
yes, I see in gstaacparse.c, the channel / sample rate index / object type
will be packaged as codec_data (AudioSpecificConfig) and then parse in
gst_codec_uitls_aac_*_profile. (which deal with as above 3rd case)
Also for ADTS type file, in gst_aac_parse_parse_adts_header(above 1st case),
the object_type got will convert to the 3rd case by plus 1 (*object = ((data[2]
& 0xc0) >> 6) + 1;)
So similar as ADTS file format, for ADIF format (above 1st case), the
object_type got also need plus 1 to convert to above 3rd case:
aacparse->object_type = (((adif[6 + skip_size] & 0x01) << 1) |
((adif[7 + skip_size] & 0x80) >> 7)) + 1;
That's what I suggested in the patch.
And in gst_codec_utils_aac_*_profile(), it can get the correct profile.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list