aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/videodsp_init.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-07-08 00:49:04 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-07-08 01:32:04 +0200
commitb8c438e7623644edcfdb508c946a723a3b79b893 (patch)
treebd8c623c77dcd0387bc6c52d16dd2e689b389614 /libavcodec/x86/videodsp_init.c
parent42e7a5b3c704985c2c18970cc94a837b413df9d9 (diff)
downloadffmpeg-b8c438e7623644edcfdb508c946a723a3b79b893.tar.gz
videodsp: assert that linesize is larger than width
Suggested-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86/videodsp_init.c')
-rw-r--r--libavcodec/x86/videodsp_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/x86/videodsp_init.c b/libavcodec/x86/videodsp_init.c
index 885cdf1d8c..26e072bb12 100644
--- a/libavcodec/x86/videodsp_init.c
+++ b/libavcodec/x86/videodsp_init.c
@@ -162,6 +162,8 @@ static av_always_inline void emulated_edge_mc(uint8_t *dst, const uint8_t *src,
if (!w || !h)
return;
+ av_assert2(block_w <= FFABS(dst_stride));
+
if (src_y >= h) {
src -= src_y*src_stride;
src_y_add = h - 1;