From: Anton Mitrofanov Date: Sun, 22 May 2016 16:36:05 +0000 (+0300) Subject: Fix p4x4 RDO with CAVLC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23ebc1f763936b7fcfc81e21530e1b65dbc503b9;p=libx264 Fix p4x4 RDO with CAVLC --- diff --git a/encoder/cavlc.c b/encoder/cavlc.c index fedb0597..4344b95a 100644 --- a/encoder/cavlc.c +++ b/encoder/cavlc.c @@ -610,6 +610,8 @@ static int x264_partition_size_cavlc( x264_t *h, int i8, int i_pixel ) int plane_count = CHROMA444 ? 3 : 1; int j; + h->out.bs.i_bits_encoded = 0; + if( i_mb_type == P_8x8 ) { x264_cavlc_8x8_mvd( h, i8 );