From cf771ab7ae0c5e5836436515f13bae31b3c55629 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Stadler?= Date: Mon, 31 Oct 2011 18:38:55 +0100 Subject: [PATCH] ac3parse: fix obvious crash --- gst/audioparsers/gstac3parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/audioparsers/gstac3parse.c b/gst/audioparsers/gstac3parse.c index 644a939..608fc93 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); -- 2.7.4