[FFmpeg-cvslog] H.264: Fix high bit depth explicit biweight

Jason Garrett-Glaser git at videolan.org
Sat Jun 11 04:16:58 CEST 2011


ffmpeg | branch: master | Jason Garrett-Glaser <jason at x264.com> | Thu Jun  9 18:20:19 2011 -0700| [c149843b5a484e73baffa0e070cfa08fe05943dd] | committer: Ronald S. Bultje

H.264: Fix high bit depth explicit biweight

Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c149843b5a484e73baffa0e070cfa08fe05943dd
---

 libavcodec/h264dsp_template.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/h264dsp_template.c b/libavcodec/h264dsp_template.c
index 91162ea..be88f74 100644
--- a/libavcodec/h264dsp_template.c
+++ b/libavcodec/h264dsp_template.c
@@ -63,6 +63,7 @@ static void FUNCC(biweight_h264_pixels ## W ## x ## H)(uint8_t *_dst, uint8_t *_
     pixel *dst = (pixel*)_dst; \
     pixel *src = (pixel*)_src; \
     stride /= sizeof(pixel); \
+    offset <<= (BIT_DEPTH-8); \
     offset = ((offset + 1) | 1) << log2_denom; \
     for(y=0; y<H; y++, dst += stride, src += stride){ \
         op_scale2(0); \



More information about the ffmpeg-cvslog mailing list