From 8eb4b032bef444397c4d211f2095c173ba114187 Mon Sep 17 00:00:00 2001 From: Akihiro Tsukada Date: Wed, 27 Feb 2013 01:45:52 +0900 Subject: [PATCH] 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. --- gst/audioparsers/gstaacparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/audioparsers/gstaacparse.c b/gst/audioparsers/gstaacparse.c index 82bdc50..a465ea7 100644 --- a/gst/audioparsers/gstaacparse.c +++ b/gst/audioparsers/gstaacparse.c @@ -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; } -- 2.7.4