Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-02-20 00:56:35 +0400
committerLuca Barbato <lu_zero@gentoo.org>2014-02-23 17:34:41 +0400
commit8eeacf31c5ea37baf6b222dc38d20cf4fd33c455 (patch)
tree99c54e7b7f9c56801b1c8677266b742e5f6a16b7 /libavcodec
parentff486c0f7f6b2ace3f0238660bc06cc35b389676 (diff)
hevc: Do not left shift a negative value in hevc_loop_filter_chroma
Diffstat (limited to 'libavcodec')
-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 104c1eb3df..f02e175196 100644
--- a/libavcodec/hevcdsp_template.c
+++ b/libavcodec/hevcdsp_template.c
@@ -1281,7 +1281,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)