mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
h265parse: Fix offset by one error in pic timing SEI
Offset by one error causes a free/malloc error when parsing pic timing SEI messages.
This commit is contained in:
parent
4643dc1c12
commit
0c798c8771
1 changed files with 1 additions and 1 deletions
|
@ -1144,7 +1144,7 @@ gst_h265_parser_parse_pic_timing (GstH265Parser * parser,
|
||||||
tim->du_cpb_removal_delay_increment_minus1 =
|
tim->du_cpb_removal_delay_increment_minus1 =
|
||||||
g_new0 (guint8, (tim->num_decoding_units_minus1 + 1));
|
g_new0 (guint8, (tim->num_decoding_units_minus1 + 1));
|
||||||
|
|
||||||
for (i = 0; i <= (tim->num_decoding_units_minus1 + 1); i++) {
|
for (i = 0; i <= tim->num_decoding_units_minus1; i++) {
|
||||||
READ_UE (nr, tim->num_nalus_in_du_minus1[i]);
|
READ_UE (nr, tim->num_nalus_in_du_minus1[i]);
|
||||||
|
|
||||||
if (!tim->du_common_cpb_removal_delay_flag
|
if (!tim->du_common_cpb_removal_delay_flag
|
||||||
|
|
Loading…
Reference in a new issue