Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -680,12 +680,12 @@ typedef void (*deblock_bs_fn)(const VVCLocalContext *lc, const int x0, const int · 679 unmodified lines | ||
| 680 | 680 | |
| 681 | 681 | static void vvc_deblock_bs(const VVCLocalContext *lc, const int x0, const int y0, const int rs, const int vertical) |
| 682 | 682 | { |
| 683 | − const VVCFrameContext *fc = lc->fc; | |
| 684 | − const VVCSPS *sps = fc->ps.sps; | |
| 685 | − const VVCPPS *pps = fc->ps.pps; | |
| 686 | − const int ctb_size = sps->ctb_size_y; | |
| 687 | − const int x_end = FFMIN(x0 + ctb_size, pps->width) >> MIN_TU_LOG2; | |
| 688 | − const int y_end = FFMIN(y0 + ctb_size, pps->height) >> MIN_TU_LOG2; | |
| 683 | + const VVCFrameContext *fc = lc->fc; | |
| 684 | + const VVCSPS *sps = fc->ps.sps; | |
| 685 | + const VVCPPS *pps = fc->ps.pps; | |
| 686 | + const int ctb_size = sps->ctb_size_y; | |
| 687 | + const int x_end = FFMIN(x0 + ctb_size, pps->width) >> MIN_TU_LOG2; | |
| 688 | + const int y_end = FFMIN(y0 + ctb_size, pps->height) >> MIN_TU_LOG2; | |
| 689 | 689 | const int has_chroma = !!sps->r->sps_chroma_format_idc; |
| 690 | 690 | deblock_bs_fn deblock_bs[] = { |
| 691 | 691 | vvc_deblock_bs_luma, vvc_deblock_bs_chroma |