mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
commit
1287b640f0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue