diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-06-30 23:40:52 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-07-01 17:38:54 +0200 |
commit | e7f152a8c2214f5d82dccdc49734f050469f5869 (patch) | |
tree | 9f02b36d21b0a075a5b21207b517ed6f240ab51d /libavcodec/cbs_h266_syntax_template.c | |
parent | c732fdfa05949e53afc41d888ae4cd5d525d5aaf (diff) | |
download | ffmpeg-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.c | 6 |
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 = ¤t->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++; } } |