summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorRené Stadler <rene.stadler@collabora.co.uk>2011-10-31 18:38:55 +0100
committerRené Stadler <rene.stadler@collabora.co.uk>2011-10-31 18:39:35 +0100
commitcf771ab7ae0c5e5836436515f13bae31b3c55629 (patch)
tree8c96e68a3d40837a193a5addcc6235b4536ae9c2 /gst
parenta49818f876d9112b11def8aae2fdd72930e8b3e3 (diff)
downloadgstreamer-plugins-good-cf771ab7ae0c5e5836436515f13bae31b3c55629.tar.gz
ac3parse: fix obvious crash
Diffstat (limited to 'gst')
-rw-r--r--gst/audioparsers/gstac3parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/audioparsers/gstac3parse.c b/gst/audioparsers/gstac3parse.c
index 644a93907..608fc93b7 100644
--- a/gst/audioparsers/gstac3parse.c
+++ b/gst/audioparsers/gstac3parse.c
@@ -500,6 +500,7 @@ gst_ac3_parse_check_valid_frame (GstBaseParse * parse,
if (G_UNLIKELY (size < 6))
goto cleanup;
+ gst_byte_reader_init (&reader, data, size);
off = gst_byte_reader_masked_scan_uint32 (&reader, 0xffff0000, 0x0b770000,
0, size);