Commit 1287b640 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '8eeacf31'

* commit '8eeacf31':
  hevc: Do not left shift a negative value in hevc_loop_filter_chroma
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents a2e4b23b 8eeacf31
...@@ -1283,7 +1283,7 @@ static void FUNC(hevc_loop_filter_chroma)(uint8_t *_pix, ptrdiff_t _xstride, ...@@ -1283,7 +1283,7 @@ static void FUNC(hevc_loop_filter_chroma)(uint8_t *_pix, ptrdiff_t _xstride,
const int p0 = P0; const int p0 = P0;
const int q0 = Q0; const int q0 = Q0;
const int q1 = Q1; 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) if (!no_p)
P0 = av_clip_pixel(p0 + delta0); P0 = av_clip_pixel(p0 + delta0);
if (!no_q) if (!no_q)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment