[x264-devel] commit: Fix regression in r922 (Jason Garrett-Glaser )
git version control
git at videolan.org
Wed Jul 30 23:18:22 CEST 2008
x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Wed Jul 30 14:42:29 2008 -0600| [9e864aa0f819db25bf97ff8881041ba3e4d911f3]
Fix regression in r922
set the chroma DC coefficients to zero for residual coding in qpel-rd
fix C99ism
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=9e864aa0f819db25bf97ff8881041ba3e4d911f3
---
encoder/cabac.c | 6 ++++--
encoder/macroblock.c | 1 +
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/encoder/cabac.c b/encoder/cabac.c
index c301f65..78736ff 100644
--- a/encoder/cabac.c
+++ b/encoder/cabac.c
@@ -730,10 +730,12 @@ static void block_residual_write_cabac( x264_t *h, x264_cabac_t *cb, int i_ctxBl
do
{
+ int i_prefix, ctx;
i_coeff--;
+
/* write coeff_abs - 1 */
- int i_prefix = X264_MIN( i_coeff_abs_m1[i_coeff], 14 );
- int ctx = coeff_abs_level1_ctx[node_ctx] + i_ctx_level;
+ i_prefix = X264_MIN( i_coeff_abs_m1[i_coeff], 14 );
+ ctx = coeff_abs_level1_ctx[node_ctx] + i_ctx_level;
if( i_prefix )
{
diff --git a/encoder/macroblock.c b/encoder/macroblock.c
index 488d020..7d989a0 100644
--- a/encoder/macroblock.c
+++ b/encoder/macroblock.c
@@ -809,6 +809,7 @@ void x264_macroblock_encode_p8x8( x264_t *h, int i8 )
h->dctf.sub4x4_dct( dct4x4, p_fenc, p_fdec );
h->quantf.quant_4x4( dct4x4, h->quant4_mf[CQM_4PC][i_qp], h->quant4_bias[CQM_4PC][i_qp] );
h->zigzagf.scan_4x4( h->dct.luma4x4[16+i8+ch*4], dct4x4 );
+ h->dct.luma4x4[16+i8+ch*4][0] = 0;
if( array_non_zero( dct4x4 ) )
{
h->quantf.dequant_4x4( dct4x4, h->dequant4_mf[CQM_4PC], i_qp );
More information about the x264-devel
mailing list