From c341f734e5f9d6af4a8fdcceb6f5d12de6395c76 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Fri, 27 Sep 2013 20:13:59 -0400 Subject: 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 --- libavcodec/videodsp_template.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec/videodsp_template.c') diff --git a/libavcodec/videodsp_template.c b/libavcodec/videodsp_template.c index 1f709c499d..39aad4deec 100644 --- a/libavcodec/videodsp_template.c +++ b/libavcodec/videodsp_template.c @@ -21,13 +21,12 @@ #include "bit_depth_template.c" void FUNC(ff_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) { int x, y; int start_y, start_x, end_y, end_x; - emuedge_linesize_type linesize = linesize_arg; if (!w || !h) return; -- cgit v1.2.3