1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/mss2dsp: use FF_PTR_ADD to add offsets to a pointer

Fixes: libavcodec/mss2dsp.c:59:14: runtime error: applying zero offset to null pointer

Tested-by: Kacper Michajlow <kasper93@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2025-06-22 10:51:06 -03:00
parent f789d60e11
commit b1172b8cc6

View File

@ -56,7 +56,7 @@ static av_always_inline void mss2_blit_wmv9_template(uint8_t *dst,
}
}
}
mask += mask_stride;
mask = FF_PTR_ADD(mask, mask_stride);
dst += dst_stride;
srcy += srcy_stride;
srcu += srcuv_stride * (r & 1);