mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08: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>
(cherry picked from commit b1172b8cc6)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
a9c5da3261
commit
ba4dd959a8
@@ -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