Commit 740749ac authored by Vincent Penquerc'h's avatar Vincent Penquerc'h
Browse files

aacparse: fix varlength number reading as per spec

https://bugzilla.gnome.org/show_bug.cgi?id=769278
parent 991e46ce
......@@ -481,7 +481,7 @@ gst_aac_parse_latm_get_value (GstAacParse * aacparse, GstBitReader * br,
*value = 0;
if (!gst_bit_reader_get_bits_uint8 (br, &bytes, 2))
return FALSE;
for (i = 0; i < bytes; ++i) {
for (i = 0; i <= bytes; ++i) {
*value <<= 8;
if (!gst_bit_reader_get_bits_uint8 (br, &byte, 8))
return FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment