[0.11] gst-plugins-good: ac3parse: let bsid 9 and 10 through

Sebastian Dröge slomo at kemper.freedesktop.org
Tue Jan 10 05:33:25 PST 2012


Module: gst-plugins-good
Branch: 0.11
Commit: 93ac6fb47ed70039e9700e6c73770afa10b9cd31
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=93ac6fb47ed70039e9700e6c73770afa10b9cd31

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Fri Sep  9 11:42:09 2011 +0100

ac3parse: let bsid 9 and 10 through

Files with 9 and 10 happen, and seem to comply with the <= 8
format, so let them through.
The spec says nothing about 9 and 10.

https://bugzilla.gnome.org/show_bug.cgi?id=658546

---

 gst/audioparsers/gstac3parse.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/gst/audioparsers/gstac3parse.c b/gst/audioparsers/gstac3parse.c
index 65c958c..6fa4658 100644
--- a/gst/audioparsers/gstac3parse.c
+++ b/gst/audioparsers/gstac3parse.c
@@ -321,7 +321,9 @@ gst_ac3_parse_frame_header_ac3 (GstAc3Parse * ac3parse, GstBuffer * buf,
 
   /* spec not quite clear here: decoder should decode if less than 8,
    * but seemingly only defines 6 and 8 cases */
-  if (bsid > 8) {
+  /* Files with 9 and 10 happen, and seem to comply with the <= 8
+     format, so let them through. The spec says nothing about 9 and 10 */
+  if (bsid > 10) {
     GST_DEBUG_OBJECT (ac3parse, "unexpected bsid=%d", bsid);
     return FALSE;
   } else if (bsid != 8 && bsid != 6) {



More information about the gstreamer-commits mailing list