diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-27 01:46:44 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-27 01:46:44 +0300 |
commit | 530bf8ece6f828262b211edab1b97b873569b255 (patch) | |
tree | f13992517694bd4e6c49cdbe2e34d4ba3e9af5f3 /libavfilter/x86 | |
parent | 5a1e524ba7e5a025e8d814f0ea9f81bdf8876081 (diff) |
avfilter/vf_eq: Fix clipping code
Found-by: Christophe Gisquet <christophe.gisquet@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/x86')
-rw-r--r-- | libavfilter/x86/vf_eq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/x86/vf_eq.c b/libavfilter/x86/vf_eq.c index cfcc18f495..2e42cdf5ba 100644 --- a/libavfilter/x86/vf_eq.c +++ b/libavfilter/x86/vf_eq.c @@ -72,7 +72,7 @@ static void process_MMX(EQParameters *param, uint8_t *dst, int dst_stride, for (i = w&7; i; i--) { pel = ((*src++ * contrast) >> 12) + brightness; - if (pel & 768) + if (pel & ~255) pel = (-pel) >> 31; *dst++ = pel; } |