[x265-commits] [x265] frameencoder: fix VBV row resets when SAO is disabled

Steve Borho steve at borho.org
Wed Sep 17 12:55:28 CEST 2014


details:   http://hg.videolan.org/x265/rev/86686bd153db
branches:  
changeset: 8079:86686bd153db
user:      Steve Borho <steve at borho.org>
date:      Wed Sep 17 12:52:38 2014 +0200
description:
frameencoder: fix VBV row resets when SAO is disabled

When SAO is disabled, the row bitstream is generated as CTU analysis progresses.
We must reset the row bitstream after a restart to avoid coding errors.
The CAABAC state is already reset correctly when CTU col 0 is re-coded.

diffstat:

 source/encoder/frameencoder.cpp |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 199e8f2e0d54 -r 86686bd153db source/encoder/frameencoder.cpp
--- a/source/encoder/frameencoder.cpp	Tue Sep 16 17:50:06 2014 +0530
+++ b/source/encoder/frameencoder.cpp	Wed Sep 17 12:52:38 2014 +0200
@@ -787,6 +787,7 @@ void FrameEncoder::processRowEncoder(int
                             while (bRowBusy);
                         }
 
+                        m_outStreams[r].resetBits();
                         stopRow.completed = 0;
                         memset(&stopRow.rowStats, 0, sizeof(stopRow.rowStats));
                         if (m_frame->m_qpaAq)


More information about the x265-commits mailing list