diff options
author | James Almer <jamrial@gmail.com> | 2024-05-18 11:41:27 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-05-18 13:21:24 -0300 |
commit | f00b23453ca522854b69bfcb81cc47765798b760 (patch) | |
tree | f0a03e0086e275016424210d02fc28be6f071167 | |
parent | a48203d51aa4836150f9379448f6b2a1d5ca9d36 (diff) | |
download | ffmpeg-f00b23453ca522854b69bfcb81cc47765798b760.tar.gz |
avformat/vvc: reduce the scope of some variables
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavformat/vvc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/vvc.c b/libavformat/vvc.c index b147f44683..19143f85dd 100644 --- a/libavformat/vvc.c +++ b/libavformat/vvc.c @@ -224,8 +224,6 @@ static int vvcc_parse_vps(GetBitContext *gb, unsigned int vps_max_sublayers_minus1; unsigned int vps_default_ptl_dpb_hrd_max_tid_flag; unsigned int vps_all_independent_layers_flag; - unsigned int vps_each_layer_is_an_ols_flag; - unsigned int vps_ols_mode_idc; unsigned int vps_pt_present_flag[VVC_MAX_PTLS]; unsigned int vps_ptl_max_tid[VVC_MAX_PTLS]; @@ -274,11 +272,13 @@ static int vvcc_parse_vps(GetBitContext *gb, } if (vps_max_layers_minus1 > 0) { + unsigned int vps_each_layer_is_an_ols_flag; if (vps_all_independent_layers_flag) vps_each_layer_is_an_ols_flag = get_bits1(gb); else vps_each_layer_is_an_ols_flag = 0; if (!vps_each_layer_is_an_ols_flag) { + unsigned int vps_ols_mode_idc; if (!vps_all_independent_layers_flag) vps_ols_mode_idc = get_bits(gb, 2); else @@ -293,8 +293,6 @@ static int vvcc_parse_vps(GetBitContext *gb, } } vps_num_ptls_minus1 = get_bits(gb, 8); - } else { - vps_each_layer_is_an_ols_flag = 0; } for (int i = 0; i <= vps_num_ptls_minus1; i++) { |