diff options
author | Frank Plowman <post@frankplowman.com> | 2024-03-27 21:01:00 +0800 |
---|---|---|
committer | Nuo Mi <nuomi2021@gmail.com> | 2024-04-02 20:24:31 +0800 |
commit | 9c845e90872ff3cc2a72ccf06c90ee6a3577b70e (patch) | |
tree | bbdbdf92388342b12164ede01f75659a35fa6a8d /libavcodec/vvc | |
parent | 64d5cc67cd77124a5553aa98f3af4e8078a8618d (diff) | |
download | ffmpeg-9c845e90872ff3cc2a72ccf06c90ee6a3577b70e.tar.gz |
avcodec/vvcdec: fix uninitialized last element of xxx_bd and ctb_to_xxx_bd arrays
see "6.5.1 CTB raster scanning, tile scanning, and subpicture scanning processes"
Co-authored-by: Nuo Mi <nuomi2021@gmail.com>
Diffstat (limited to 'libavcodec/vvc')
-rw-r--r-- | libavcodec/vvc/vvc_ps.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/vvc/vvc_ps.c b/libavcodec/vvc/vvc_ps.c index 270e1c1535..d50822024f 100644 --- a/libavcodec/vvc/vvc_ps.c +++ b/libavcodec/vvc/vvc_ps.c @@ -292,6 +292,7 @@ static int pps_bd(VVCPPS *pps) for (int k = pps->col_bd[i]; k < j; k++) pps->ctb_to_col_bd[k] = pps->col_bd[i]; } + pps->col_bd[r->num_tile_columns] = pps->ctb_to_col_bd[pps->ctb_width] = pps->ctb_width; for (int i = 0, j = 0; i < r->num_tile_rows; i++) { pps->row_bd[i] = j; @@ -299,6 +300,8 @@ static int pps_bd(VVCPPS *pps) for (int k = pps->row_bd[i]; k < j; k++) pps->ctb_to_row_bd[k] = pps->row_bd[i]; } + pps->row_bd[r->num_tile_rows] = pps->ctb_to_row_bd[pps->ctb_height] = pps->ctb_height; + return 0; } |