[FFmpeg-cvslog] avcodec/me_cmp: Fix median_sad size
Michael Niedermayer
git at videolan.org
Tue Dec 6 01:27:31 EET 2016
ffmpeg | branch: release/3.2 | Michael Niedermayer <michael at niedermayer.cc> | Sun Nov 27 14:34:57 2016 +0100| [2d51cb1d0ad91ced96ca502d97481269de19eeb1] | 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>
(cherry picked from commit d9883ded3450e456df5b7214fe464b4b92e917ef)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d51cb1d0ad91ced96ca502d97481269de19eeb1
---
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