From f1b2e9f60388e03cb61f7869108b1a77b8256a09 Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Thu, 23 Jan 2014 16:45:50 +0200 Subject: [PATCH] Fix buggy chroma when NxN is present. - NxN intra prediction seems to work fully now. - Coefficients still don't work for NxN. --- src/encoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/encoder.c b/src/encoder.c index f71ba72b..c42d225a 100644 --- a/src/encoder.c +++ b/src/encoder.c @@ -1534,8 +1534,8 @@ void encode_transform_tree(encoder_control *encoder, int32_t x_pu, int32_t y_pu, pred_y[x+y*pred_stride]=recbase_y[x+y*recbase_stride]; } } - for(y = 0; y < LCU_WIDTH>>(depth+1); y++) { - for(x = 0; x < LCU_WIDTH>>(depth+1); x++) { + for(y = 0; y < width_c; y++) { + for(x = 0; x < width_c; x++) { pred_u[x+y*(pred_stride>>1)]=recbase_u[x+y*(recbase_stride>>1)]; pred_v[x+y*(pred_stride>>1)]=recbase_v[x+y*(recbase_stride>>1)]; }