Browse code

avcodec/me_cmp: Fix median_sad size

Fixes out of array read
Fixes: COV1396255

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

Michael Niedermayer authored on 2016/11/27 22:34:57
Showing 1 changed files
... ...
@@ -76,7 +76,7 @@ typedef struct MECmpContext {
76 76
     me_cmp_func frame_skip_cmp[6]; // only width 8 used
77 77
 
78 78
     me_cmp_func pix_abs[2][4];
79
-    me_cmp_func median_sad[2];
79
+    me_cmp_func median_sad[6];
80 80
 } MECmpContext;
81 81
 
82 82
 void ff_me_cmp_init_static(void);