From 2ffead98ddd384f61cdf6b1cb3f36592f54cd34a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 4 Sep 2013 14:22:20 +0200 Subject: avcodec: add emuedge_linesize_type Currently all uses of the emu edge code as well as the code itself assume int linesize changing some but not changing all would introduce a security issue once all use this typedef a simple search and replace can be done to switch them all to ptrdiff_t Signed-off-by: Michael Niedermayer --- libavcodec/videodsp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/videodsp.h') diff --git a/libavcodec/videodsp.h b/libavcodec/videodsp.h index e397720773..07519d71ba 100644 --- a/libavcodec/videodsp.h +++ b/libavcodec/videodsp.h @@ -29,6 +29,8 @@ #include #include +typedef int emuedge_linesize_type; + #define EMULATED_EDGE(depth) \ void ff_emulated_edge_mc_ ## depth (uint8_t *buf, const uint8_t *src, ptrdiff_t linesize,\ int block_w, int block_h,\ -- cgit v1.2.3