diff options
author | James Almer <jamrial@gmail.com> | 2024-06-11 13:50:07 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-06-13 20:36:09 -0300 |
commit | 1b9af306da36a9e5b2e786b07cad50c5ba8c203f (patch) | |
tree | 06c6306cf83dbcd45469be9f9f58971cec15f91c /libavcodec/vvc/cabac.c | |
parent | 4b57ea8fc74aefb0eaba90ae4b73931a217f8f33 (diff) | |
download | ffmpeg-1b9af306da36a9e5b2e786b07cad50c5ba8c203f.tar.gz |
avcodec: use the renamed av_zero_extend
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/vvc/cabac.c')
-rw-r--r-- | libavcodec/vvc/cabac.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/vvc/cabac.c b/libavcodec/vvc/cabac.c index a5ccccd1c0..0d45eec751 100644 --- a/libavcodec/vvc/cabac.c +++ b/libavcodec/vvc/cabac.c @@ -954,8 +954,8 @@ void get_left_top(const VVCLocalContext *lc, uint8_t *left, uint8_t *top, const VVCFrameContext *fc = lc->fc; const VVCSPS *sps = fc->ps.sps; const int min_cb_width = fc->ps.pps->min_cb_width; - const int x0b = av_mod_uintp2(x0, sps->ctb_log2_size_y); - const int y0b = av_mod_uintp2(y0, sps->ctb_log2_size_y); + const int x0b = av_zero_extend(x0, sps->ctb_log2_size_y); + const int y0b = av_zero_extend(y0, sps->ctb_log2_size_y); const int x_cb = x0 >> sps->min_cb_log2_size_y; const int y_cb = y0 >> sps->min_cb_log2_size_y; @@ -1132,8 +1132,8 @@ static int mtt_split_cu_vertical_flag_decode(VVCLocalContext *lc, const int x0, const VVCFrameContext *fc = lc->fc; const VVCSPS *sps = fc->ps.sps; const int min_cb_width = fc->ps.pps->min_cb_width; - const int x0b = av_mod_uintp2(x0, sps->ctb_log2_size_y); - const int y0b = av_mod_uintp2(y0, sps->ctb_log2_size_y); + const int x0b = av_zero_extend(x0, sps->ctb_log2_size_y); + const int y0b = av_zero_extend(y0, sps->ctb_log2_size_y); const int x_cb = x0 >> sps->min_cb_log2_size_y; const int y_cb = y0 >> sps->min_cb_log2_size_y; const int available_a = lc->ctb_up_flag || y0b; |