mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 06:05:32 +01: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user