[FFmpeg-cvslog] avcodec/me_cmp: Fix median_sad size

Michael Niedermayer git at videolan.org
Sun Nov 27 16:39:50 EET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Nov 27 14:34:57 2016 +0100| [d9883ded3450e456df5b7214fe464b4b92e917ef] | committer: Michael Niedermayer

avcodec/me_cmp: Fix median_sad size

Fixes out of array read
Fixes: COV1396255

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d9883ded3450e456df5b7214fe464b4b92e917ef
---

 libavcodec/me_cmp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/me_cmp.h b/libavcodec/me_cmp.h
index 5666f59..0dbbcbb 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);



More information about the ffmpeg-cvslog mailing list