mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 11:32:51 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue