diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-04 14:22:20 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-07 14:30:17 +0200 |
commit | 87908de715c2f7e898cfebbb78edca346d18b155 (patch) | |
tree | 472853285d6159920c053baeb5b0267e8da220e0 /libavcodec/videodsp_template.c | |
parent | de5e00336988ccff74715bcad0c7697ea8c57baf (diff) | |
download | ffmpeg-87908de715c2f7e898cfebbb78edca346d18b155.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>
(cherry picked from commit 2ffead98ddd384f61cdf6b1cb3f36592f54cd34a)
Conflicts:
libavcodec/videodsp.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/videodsp_template.c')
-rw-r--r-- | libavcodec/videodsp_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/videodsp_template.c b/libavcodec/videodsp_template.c index 44f6a4d63e..1f709c499d 100644 --- a/libavcodec/videodsp_template.c +++ b/libavcodec/videodsp_template.c @@ -27,7 +27,7 @@ void FUNC(ff_emulated_edge_mc)(uint8_t *buf, const uint8_t *src, { int x, y; int start_y, start_x, end_y, end_x; - int linesize = linesize_arg; + emuedge_linesize_type linesize = linesize_arg; if (!w || !h) return; |