aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-07-06 12:05:52 -0300
committerJames Almer <jamrial@gmail.com>2023-07-07 11:56:37 -0300
commit3a30abd8ae708e608fe58d3a6ceb80f6aeb37b1d (patch)
tree1f1ec88032d3a084e9fcbe539346cf825c813ed0
parent0f008a0ffa5c1a863e4c78c640135a3693ff1d9c (diff)
downloadffmpeg-3a30abd8ae708e608fe58d3a6ceb80f6aeb37b1d.tar.gz
avcodec/cbs_h266: use exp_tile_height when checking the allowed range for pps_num_exp_tile_rows_minus1
Fixes warnings about variable set but not used. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/cbs_h266_syntax_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec/cbs_h266_syntax_template.c
index a39efe588e..dce0216fbc 100644
--- a/libavcodec/cbs_h266_syntax_template.c
+++ b/libavcodec/cbs_h266_syntax_template.c
@@ -1845,7 +1845,7 @@ static int FUNC(pps) (CodedBitstreamContext *ctx, RWContext *rw,
}
for (i = 0; i <= current->pps_num_exp_tile_rows_minus1; i++) {
ues(pps_tile_row_height_minus1[i],
- 0, pic_height_in_ctbs_y - 1, 1, i);
+ 0, pic_height_in_ctbs_y - exp_tile_height - 1, 1, i);
exp_tile_height += current->pps_tile_row_height_minus1[i] + 1;
}