diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-04 14:22:20 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-04 14:29:20 +0200 |
commit | 2ffead98ddd384f61cdf6b1cb3f36592f54cd34a (patch) | |
tree | 1d1f50cf69e47a499ad4f113220b644b7f7e3746 /libavcodec/videodsp.h | |
parent | 3eeca8b0e4e018ba7eecaea4aa1a3e40665ed42a (diff) | |
download | ffmpeg-2ffead98ddd384f61cdf6b1cb3f36592f54cd34a.tar.gz |
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 <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/videodsp.h')
-rw-r--r-- | libavcodec/videodsp.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <stddef.h> #include <stdint.h> +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,\ |