diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-11-28 13:54:35 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-01-06 11:25:36 +0400 |
commit | a03a642d5ceb5f2f7c6ebbf56ff365dfbcdb65eb (patch) | |
tree | c030c23ab383f313b633dcea9ef20d89ae4668d9 /libavcodec/arm | |
parent | 9eef9eb3014b2ed9c3ff4aac510a9f04edb555cf (diff) |
h264: do not use 422 functions for monochrome
Fixes invalid memory access.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
Diffstat (limited to 'libavcodec/arm')
-rw-r--r-- | libavcodec/arm/h264dsp_init_arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/arm/h264dsp_init_arm.c b/libavcodec/arm/h264dsp_init_arm.c index b206a1b3ba..c1398a660b 100644 --- a/libavcodec/arm/h264dsp_init_arm.c +++ b/libavcodec/arm/h264dsp_init_arm.c @@ -91,7 +91,7 @@ static av_cold void h264dsp_init_neon(H264DSPContext *c, const int bit_depth, c->h264_idct_dc_add = ff_h264_idct_dc_add_neon; c->h264_idct_add16 = ff_h264_idct_add16_neon; c->h264_idct_add16intra = ff_h264_idct_add16intra_neon; - if (chroma_format_idc == 1) + if (chroma_format_idc <= 1) c->h264_idct_add8 = ff_h264_idct_add8_neon; c->h264_idct8_add = ff_h264_idct8_add_neon; c->h264_idct8_dc_add = ff_h264_idct8_dc_add_neon; |