From 665b3691642d3a9bbec7114c5b1cbed87644303d Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Wed, 2 Oct 2013 10:59:34 +0300 Subject: [PATCH] Fix chroma problem in inter prediction. There is still a separate problem, but this fixes the visible chroma problem with motion vectors that have reference a chroma half-pixel. --- src/filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filter.c b/src/filter.c index f6a66e6f..4763ab9a 100644 --- a/src/filter.c +++ b/src/filter.c @@ -425,7 +425,7 @@ void filter_inter_halfpel_chroma(int16_t *src, int16_t src_stride, int width, in src_pos += src_stride; //0,2 ae_temp3 = ((-4*src[src_pos - 1] + 36*src[src_pos] + 36*src[src_pos + 1] - 4*src[src_pos + 2] ) >> shift1) + offset; // ae0,2 - dst[dst_pos + 1*dst_stride + 1] = ((( -4*ae_temp1 + 36*dst[dst_pos + 1] + 36*ae_temp2 - 4*ae_temp3 ) >> shift2) + offset) >> shift3; // ee0,0 + dst[dst_pos + 1*dst_stride + 1] = ((( -4*ae_temp1 + 36*ae_temp + 36*ae_temp2 - 4*ae_temp3 ) >> shift2) + offset) >> shift3; // ee0,0 } if(hor_flag) {