mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
aacparse: relax the detection of ADTS
According to ISO/IEC 13818-7, "channel_config" field in ADTS header may have value of 0, as in the case of frame with PCE. gst_aac_parse_detect_streams() returned FALSE for those frames and discarded them.
This commit is contained in:
parent
55da3bc885
commit
8eb4b032be
1 changed files with 1 additions and 1 deletions
|
@ -806,7 +806,7 @@ gst_aac_parse_detect_stream (GstAacParse * aacparse,
|
|||
gst_aac_parse_parse_adts_header (aacparse, data, &rate, &channels,
|
||||
&aacparse->object_type, &aacparse->mpegversion);
|
||||
|
||||
if (!channels || !framesize) {
|
||||
if (!framesize) {
|
||||
GST_DEBUG_OBJECT (aacparse, "impossible ADTS configuration");
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue