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:
parent
f789d60e11
commit
b1172b8cc6
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue