From 7484dafd82fb9b97d7c95e6f19b4ef7c3d801cbc Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Fri, 4 Apr 2014 15:16:04 +0300 Subject: [PATCH] Fix for get_coeff_cost() scan mode selection Small BD-rate improvement with this fix --- src/rdo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rdo.c b/src/rdo.c index f5255841..1e09280f 100644 --- a/src/rdo.c +++ b/src/rdo.c @@ -113,7 +113,7 @@ int32_t get_coeff_cost(encoder_control *encoder, coefficient *coeff, int32_t wid cabac.bits_left = 23; // Execute the coding function - encode_coeff_nxn(encoder, coeff, width, type, width < 8? SCAN_VER:SCAN_DIAG, 0); + encode_coeff_nxn(encoder, coeff, width, type, SCAN_DIAG, 0); // Store bitcost before restoring cabac cost = (23-cabac.bits_left) + (cabac.num_buffered_bytes << 3);