From d9883ded3450e456df5b7214fe464b4b92e917ef Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 27 Nov 2016 14:34:57 +0100 Subject: avcodec/me_cmp: Fix median_sad size Fixes out of array read Fixes: COV1396255 Signed-off-by: Michael Niedermayer --- libavcodec/me_cmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/me_cmp.h') diff --git a/libavcodec/me_cmp.h b/libavcodec/me_cmp.h index 5666f59ade..0dbbcbb1d9 100644 --- a/libavcodec/me_cmp.h +++ b/libavcodec/me_cmp.h @@ -76,7 +76,7 @@ typedef struct MECmpContext { me_cmp_func frame_skip_cmp[6]; // only width 8 used me_cmp_func pix_abs[2][4]; - me_cmp_func median_sad[2]; + me_cmp_func median_sad[6]; } MECmpContext; void ff_me_cmp_init_static(void); -- cgit v1.2.3