[x264-devel] Fix p4x4 RDO with CAVLC

Anton Mitrofanov git at videolan.org
Mon Jun 13 23:44:53 CEST 2016


x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Sun May 22 19:36:05 2016 +0300| [23ebc1f763936b7fcfc81e21530e1b65dbc503b9] | committer: Henrik Gramner

Fix p4x4 RDO with CAVLC

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=23ebc1f763936b7fcfc81e21530e1b65dbc503b9
---

 encoder/cavlc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/encoder/cavlc.c b/encoder/cavlc.c
index fedb059..4344b95 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 );



More information about the x264-devel mailing list