typefind: Ensure we have enough data when reading the sync marker in the AAC/LOAS typefinder

This commit is contained in:
Sebastian Dröge 2013-05-24 17:43:53 +02:00
parent b8c6413a8e
commit 92af499eb7

View file

@ -967,7 +967,7 @@ aac_type_find_scan_loas_frames (GstTypeFind * tf, DataScanCtx * scan_ctx,
/* add size of sync stream header */
len += 3;
if (len == 0 || !data_scan_ctx_ensure_data (tf, &c, len)) {
if (len == 0 || !data_scan_ctx_ensure_data (tf, &c, len + 2)) {
GST_DEBUG ("Wrong sync or next frame not within reach, len=%u", len);
break;
}