diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-06-30 23:29:53 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-07-01 17:37:55 +0200 |
commit | c732fdfa05949e53afc41d888ae4cd5d525d5aaf (patch) | |
tree | 45caf7f9759972c7cbb50eef3464baf9fa670fd4 | |
parent | b40324d417e7952b73ce600b1e9651aeeda8db47 (diff) | |
download | ffmpeg-c732fdfa05949e53afc41d888ae4cd5d525d5aaf.tar.gz |
avcodec/cbs_h266_syntax_template: Don't use uninitialized value
Just a typo. Fixes a warning from Clang.
Reviewed-by: Nuo Mi <nuomi2021@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/cbs_h266_syntax_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec/cbs_h266_syntax_template.c index 863fecdefa..56e1205337 100644 --- a/libavcodec/cbs_h266_syntax_template.c +++ b/libavcodec/cbs_h266_syntax_template.c @@ -1059,7 +1059,7 @@ static int FUNC(sps)(CodedBitstreamContext *ctx, RWContext *rw, if (current->sps_pic_width_max_in_luma_samples > ctb_size_y) ubs(wlen, sps_subpic_width_minus1[0], 1, 0); else - infer(sps_subpic_width_minus1[i], tmp_width_val - 1); + infer(sps_subpic_width_minus1[0], tmp_width_val - 1); if (current->sps_pic_height_max_in_luma_samples > ctb_size_y) ubs(hlen, sps_subpic_height_minus1[0], 1, 0); else |