From 2ad1f20e7b430985091ea2f4e8ba753f9e908c46 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Tue, 14 Jan 2014 09:43:33 +0000 Subject: [PATCH] Revert "aacparse: relax the detection of ADTS" This was pushed by mistake along with the V4L2 fix. This reverts commit 8eb4b032bef444397c4d211f2095c173ba114187. --- 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 a465ea700c..82bdc50c7a 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 (!framesize) { + if (!channels || !framesize) { GST_DEBUG_OBJECT (aacparse, "impossible ADTS configuration"); return FALSE; }