aacparse: fix varlength number reading as per spec
https://bugzilla.gnome.org/show_bug.cgi?id=769278
This commit is contained in:
parent
991e46ce42
commit
740749ac55
@ -481,7 +481,7 @@ gst_aac_parse_latm_get_value (GstAacParse * aacparse, GstBitReader * br,
|
|||||||
*value = 0;
|
*value = 0;
|
||||||
if (!gst_bit_reader_get_bits_uint8 (br, &bytes, 2))
|
if (!gst_bit_reader_get_bits_uint8 (br, &bytes, 2))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
for (i = 0; i < bytes; ++i) {
|
for (i = 0; i <= bytes; ++i) {
|
||||||
*value <<= 8;
|
*value <<= 8;
|
||||||
if (!gst_bit_reader_get_bits_uint8 (br, &byte, 8))
|
if (!gst_bit_reader_get_bits_uint8 (br, &byte, 8))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user