aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cbs_h266_syntax_template.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-06-30 23:40:52 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-07-01 17:38:54 +0200
commite7f152a8c2214f5d82dccdc49734f050469f5869 (patch)
tree9f02b36d21b0a075a5b21207b517ed6f240ab51d /libavcodec/cbs_h266_syntax_template.c
parentc732fdfa05949e53afc41d888ae4cd5d525d5aaf (diff)
downloadffmpeg-e7f152a8c2214f5d82dccdc49734f050469f5869.tar.gz
avcodec/cbs_h266_syntax_template: Avoid shadowing
Reviewed-by: Nuo Mi <nuomi2021@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/cbs_h266_syntax_template.c')
-rw-r--r--libavcodec/cbs_h266_syntax_template.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec/cbs_h266_syntax_template.c
index 56e1205337..f48b89cac9 100644
--- a/libavcodec/cbs_h266_syntax_template.c
+++ b/libavcodec/cbs_h266_syntax_template.c
@@ -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++;
}
}