Commit 65fce65d5e for ffmpeg
commit 65fce65d5ee63edd5b596288af16f8822eb29c17
Author: Wu Jianhua <toqsxw@outlook.com>
Date: Fri May 30 02:50:34 2025 +0800
avcodec/vvc/dsp_template: remove warning conversion from size_t to const int
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
diff --git a/libavcodec/vvc/dsp_template.c b/libavcodec/vvc/dsp_template.c
index 13bd8cd4a1..c61ddec497 100644
--- a/libavcodec/vvc/dsp_template.c
+++ b/libavcodec/vvc/dsp_template.c
@@ -32,9 +32,8 @@
static void FUNC(add_residual)(uint8_t *_dst, const int *res,
const int w, const int h, const ptrdiff_t _stride)
{
- pixel *dst = (pixel *)_dst;
-
- const int stride = _stride / sizeof(pixel);
+ pixel *dst = (pixel *)_dst;
+ const ptrdiff_t stride = _stride / sizeof(pixel);
for (int y = 0; y < h; y++) {
for (int x = 0; x < w; x++) {