You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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>
This commit is contained in:
@@ -1845,7 +1845,7 @@ static int FUNC(pps) (CodedBitstreamContext *ctx, RWContext *rw,
|
|||||||
}
|
}
|
||||||
for (i = 0; i <= current->pps_num_exp_tile_rows_minus1; i++) {
|
for (i = 0; i <= current->pps_num_exp_tile_rows_minus1; i++) {
|
||||||
ues(pps_tile_row_height_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;
|
exp_tile_height += current->pps_tile_row_height_minus1[i] + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user