You've already forked FFmpeg
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:
@ -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