aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hevcdsp_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-02-23 22:17:19 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-23 22:18:09 +0100
commit1287b640f0003b76954e61c66227b963c0ec2907 (patch)
tree005d4a60566c4f348c1171213077bf43d08d5d45 /libavcodec/hevcdsp_template.c
parenta2e4b23bfe2d3c358f83894df4345d912ec6b8fc (diff)
parent8eeacf31c5ea37baf6b222dc38d20cf4fd33c455 (diff)
downloadffmpeg-1287b640f0003b76954e61c66227b963c0ec2907.tar.gz
Merge commit '8eeacf31c5ea37baf6b222dc38d20cf4fd33c455'
* commit '8eeacf31c5ea37baf6b222dc38d20cf4fd33c455': hevc: Do not left shift a negative value in hevc_loop_filter_chroma Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevcdsp_template.c')
-rw-r--r--libavcodec/hevcdsp_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevcdsp_template.c b/libavcodec/hevcdsp_template.c
index a11ddfdc38..8ceb093dfa 100644
--- a/libavcodec/hevcdsp_template.c
+++ b/libavcodec/hevcdsp_template.c
@@ -1283,7 +1283,7 @@ static void FUNC(hevc_loop_filter_chroma)(uint8_t *_pix, ptrdiff_t _xstride,
const int p0 = P0;
const int q0 = Q0;
const int q1 = Q1;
- delta0 = av_clip((((q0 - p0) << 2) + p1 - q1 + 4) >> 3, -tc, tc);
+ delta0 = av_clip((((q0 - p0) * 4) + p1 - q1 + 4) >> 3, -tc, tc);
if (!no_p)
P0 = av_clip_pixel(p0 + delta0);
if (!no_q)