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:
parent
b6747292e0
commit
743b4677a2
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user