summaryrefslogtreecommitdiff
path: root/libavcodec/h264dsp_template.c
diff options
context:
space:
mode:
authorJason Garrett-Glaser <jason@x264.com>2011-06-09 18:20:19 -0700
committerRonald S. Bultje <rsbultje@gmail.com>2011-06-10 14:45:49 -0400
commitc149843b5a484e73baffa0e070cfa08fe05943dd (patch)
tree8531314230775932d317d97ec616a69ef33c2c0f /libavcodec/h264dsp_template.c
parent6c031a3338d49dd61cf34fd703631f5a47205912 (diff)
H.264: Fix high bit depth explicit biweight
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/h264dsp_template.c')
-rw-r--r--libavcodec/h264dsp_template.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264dsp_template.c b/libavcodec/h264dsp_template.c
index 91162ea900..be88f7487f 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); \