From b6b2e045010d60033df61f74046337e70efbe907 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Wed, 12 Aug 2015 05:11:27 +0300 Subject: [PATCH] codecparsers: h265: Fix the parsing of ref_pic_lists_modification https://bugzilla.gnome.org/show_bug.cgi?id=753552 --- gst-libs/gst/codecparsers/gsth265parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/codecparsers/gsth265parser.c b/gst-libs/gst/codecparsers/gsth265parser.c index 563fedff58..1b95fac627 100644 --- a/gst-libs/gst/codecparsers/gsth265parser.c +++ b/gst-libs/gst/codecparsers/gsth265parser.c @@ -885,7 +885,7 @@ gst_h265_slice_parse_ref_pic_list_modification (GstH265SliceHdr * slice, READ_UINT8 (nr, rpl_mod->ref_pic_list_modification_flag_l0, 1); if (rpl_mod->ref_pic_list_modification_flag_l0) { - for (i = 0; i < slice->num_ref_idx_l0_active_minus1; i++) { + for (i = 0; i <= slice->num_ref_idx_l0_active_minus1; i++) { READ_UINT32 (nr, rpl_mod->list_entry_l0[i], n); CHECK_ALLOWED_MAX (rpl_mod->list_entry_l0[i], (NumPocTotalCurr - 1)); }