Convert multiplier for MV from int to ptrdiff_t.
This prevents emulated_edge_mc from not undoing mvy*stride-related integer overflows. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
7381d31f22
commit
c341f734e5
@@ -39,14 +39,13 @@ extern emu_edge_core_func ff_emu_edge_core_mmx;
|
||||
extern emu_edge_core_func ff_emu_edge_core_sse;
|
||||
|
||||
static av_always_inline void emulated_edge_mc(uint8_t *buf, const uint8_t *src,
|
||||
ptrdiff_t linesize_arg,
|
||||
ptrdiff_t linesize,
|
||||
int block_w, int block_h,
|
||||
int src_x, int src_y,
|
||||
int w, int h,
|
||||
emu_edge_core_func *core_fn)
|
||||
{
|
||||
int start_y, start_x, end_y, end_x, src_y_add = 0;
|
||||
emuedge_linesize_type linesize = linesize_arg;
|
||||
|
||||
if(!w || !h)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user