avcodec/cbs_h266_syntax_template: Avoid shadowing

Reviewed-by: Nuo Mi <nuomi2021@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2023-06-30 23:40:52 +02:00
parent c732fdfa05
commit e7f152a8c2
1 changed files with 3 additions and 3 deletions

View File

@ -514,9 +514,9 @@ static int FUNC(ref_pic_lists) (CodedBitstreamContext *ctx, RWContext *rw,
ref_list = &current->rpl_ref_list[i];
num_ltrp_entries = 0;
for (int i = 0; i < ref_list->num_ref_entries; i++) {
if (!ref_list->inter_layer_ref_pic_flag[i]) {
if (!ref_list->st_ref_pic_flag[i]) {
for (int k = 0; k < ref_list->num_ref_entries; k++) {
if (!ref_list->inter_layer_ref_pic_flag[k]) {
if (!ref_list->st_ref_pic_flag[k]) {
num_ltrp_entries++;
}
}