mpeg4videoparse: Use gst_bit_reader_skip to skip more than 32 bits.

GET_BITS is a macro for gst_bit_reader_get_bits_uint32, which cannot
read more than 32 bits and will fail in this case where it is called
to read 79 bits. Since we want to skip those bits, gst_bit_reader_skip
is more appropriate in this case.
This commit is contained in:
George Kiagiadakis 2011-08-16 19:47:02 +03:00 committed by Alessandro Decina
parent b6747292e0
commit 743b4677a2

View file

@ -140,7 +140,8 @@ gst_mpeg4_params_parse_vo (MPEG4Params * params, GstBitReader * br)
GET_BITS (br, 1, &bits);
if (bits) {
/* skip vbv_parameters */
GET_BITS (br, 79, &bits);
if (!gst_bit_reader_skip (br, 79))
goto failed;
}
}