mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
typefind: Ensure we have enough data when reading the sync marker in the AAC/LOAS typefinder
This commit is contained in:
parent
b8c6413a8e
commit
92af499eb7
1 changed files with 1 additions and 1 deletions
|
@ -967,7 +967,7 @@ aac_type_find_scan_loas_frames (GstTypeFind * tf, DataScanCtx * scan_ctx,
|
||||||
/* add size of sync stream header */
|
/* add size of sync stream header */
|
||||||
len += 3;
|
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);
|
GST_DEBUG ("Wrong sync or next frame not within reach, len=%u", len);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue