diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2013-05-24 17:43:53 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2013-07-05 19:42:05 +0100 |
commit | 550d05ffffb4023075daba425b018b8657824268 (patch) | |
tree | 61111d38deb9b88e40924cbd2ff8aa3af68c67a4 | |
parent | ba19f346583d2a9025d6fc575c2fcc9fed3cbd99 (diff) | |
download | gstreamer-plugins-base-550d05ffffb4023075daba425b018b8657824268.tar.gz |
typefind: Ensure we have enough data when reading the sync marker in the AAC/LOAS typefinder
-rw-r--r-- | gst/typefind/gsttypefindfunctions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 771a20e2e..82accf7bb 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -906,7 +906,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; } |