[x265] [PATCH] slicetype: fix non-determinism issue in slice type decisions

aarthi at multicorewareinc.com aarthi at multicorewareinc.com
Wed Feb 25 14:07:03 CET 2015


# HG changeset patch
# User Aarthi Thirumalai
# Date 1424869604 -19800
#      Wed Feb 25 18:36:44 2015 +0530
# Node ID 7c197b37459b6aebf929f4a1381b74f71ebc82f7
# Parent  87173d41df87043297698770c8e99ac8c419d19e
slicetype: fix non-determinism issue in slice type decisions

diff -r 87173d41df87 -r 7c197b37459b source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp	Tue Feb 24 13:27:15 2015 -0600
+++ b/source/encoder/slicetype.cpp	Wed Feb 25 18:36:44 2015 +0530
@@ -1049,7 +1049,6 @@
             m_outputQueue.pushBack(*list[i]);
         }
     }
-    m_outputLock.release();
 
     bool isKeyFrameAnalyse = (m_param->rc.cuTree || (m_param->rc.vbvBufferSize && m_param->lookaheadDepth)) && !m_param->rc.bStatRead;
     if (isKeyFrameAnalyse && IS_X265_TYPE_I(m_lastNonB->sliceType))
@@ -1068,6 +1067,7 @@
         frames[j + 1] = NULL;
         slicetypeAnalyse(frames, true);
     }
+        m_outputLock.release();
 }
 
 void Lookahead::vbvLookahead(Lowres **frames, int numFrames, int keyframe)


More information about the x265-devel mailing list