diff options
author | René Stadler <rene.stadler@collabora.co.uk> | 2011-10-31 18:38:55 +0100 |
---|---|---|
committer | René Stadler <rene.stadler@collabora.co.uk> | 2011-10-31 18:39:35 +0100 |
commit | cf771ab7ae0c5e5836436515f13bae31b3c55629 (patch) | |
tree | 8c96e68a3d40837a193a5addcc6235b4536ae9c2 /gst | |
parent | a49818f876d9112b11def8aae2fdd72930e8b3e3 (diff) | |
download | gstreamer-plugins-good-cf771ab7ae0c5e5836436515f13bae31b3c55629.tar.gz |
ac3parse: fix obvious crash
Diffstat (limited to 'gst')
-rw-r--r-- | gst/audioparsers/gstac3parse.c | 1 |
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); |