diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-23 22:17:19 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-23 22:18:09 +0100 |
commit | 1287b640f0003b76954e61c66227b963c0ec2907 (patch) | |
tree | 005d4a60566c4f348c1171213077bf43d08d5d45 | |
parent | a2e4b23bfe2d3c358f83894df4345d912ec6b8fc (diff) | |
parent | 8eeacf31c5ea37baf6b222dc38d20cf4fd33c455 (diff) | |
download | ffmpeg-streaming-1287b640f0003b76954e61c66227b963c0ec2907.zip ffmpeg-streaming-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>
-rw-r--r-- | libavcodec/hevcdsp_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevcdsp_template.c b/libavcodec/hevcdsp_template.c index a11ddfd..8ceb093 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) |