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.
This commit is contained in:
René Stadler 2010-12-03 17:33:40 +02:00
parent 725968c612
commit 1e75501c10

View file

@ -1291,7 +1291,7 @@ ac3_type_find (GstTypeFind * tf, gpointer unused)
} }
} }
} }
} else { } else if (bsid <= 16 && bsid > 10) {
/* eac3 */ /* eac3 */
DataScanCtx c_next = c; DataScanCtx c_next = c;
guint frame_size; guint frame_size;
@ -1317,6 +1317,8 @@ ac3_type_find (GstTypeFind * tf, gpointer unused)
GST_LOG ("no second E-AC3 frame found, false sync"); 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); data_scan_ctx_advance (tf, &c, 1);