diff options
author | René Stadler <rene.stadler@nokia.com> | 2010-12-03 17:33:40 +0200 |
---|---|---|
committer | René Stadler <rene.stadler@nokia.com> | 2010-12-07 21:28:20 +0200 |
commit | 1e75501c107cc61cdb3c6ecf8b30fdb90038484e (patch) | |
tree | 0f598dfc757774e1ae7efffad800b7352dad9ba4 | |
parent | 725968c61290fc9f7ba178de187884cbbab894b5 (diff) |
typefind: ignore AC-3 BSIDs 9, 10 and >16
These are reserved for future extensions which will not be backwards
compatible to E-AC-3.
-rw-r--r-- | gst/typefind/gsttypefindfunctions.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 84644ca0d..3b556824a 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -1291,7 +1291,7 @@ ac3_type_find (GstTypeFind * tf, gpointer unused) } } } - } else { + } else if (bsid <= 16 && bsid > 10) { /* eac3 */ DataScanCtx c_next = c; guint frame_size; @@ -1317,6 +1317,8 @@ ac3_type_find (GstTypeFind * tf, gpointer unused) GST_LOG ("no second E-AC3 frame found, false sync"); } } + } else { + GST_LOG ("invalid AC3 BSID: %u", bsid); } } data_scan_ctx_advance (tf, &c, 1); |