[x265] [PATCH] analysis: fix for csp:444 decoder crash - CABAC context state handling

gopu at multicorewareinc.com gopu at multicorewareinc.com
Wed Oct 8 09:19:17 CEST 2014


# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1412752743 -19800
#      Wed Oct 08 12:49:03 2014 +0530
# Node ID 45a5d6ae624f5f26e5ff070afec10581654b8f67
# Parent  46c4b98d92ece7ff25d790b0fc69a8185d575524
analysis: fix for csp:444 decoder crash - CABAC context state handling

diff -r 46c4b98d92ec -r 45a5d6ae624f source/encoder/analysis.cpp
--- a/source/encoder/analysis.cpp	Mon Oct 06 22:07:54 2014 -0500
+++ b/source/encoder/analysis.cpp	Wed Oct 08 12:49:03 2014 +0530
@@ -1372,7 +1372,7 @@
                 std::swap(m_bestRecoYuv[depth], m_tmpRecoYuv[depth]);
                 std::swap(m_bestPredYuv[depth], m_tmpPredYuv[depth]);
                 // copy 'next' state from last CU of next depth as next state of this CU
-                m_rdContexts[nextDepth].next.store(m_rdContexts[depth].next);
+                m_rdContexts[nextDepth].next.store(m_rdContexts[depth].temp);
             }
         }
         else
@@ -1381,7 +1381,7 @@
             std::swap(m_bestRecoYuv[depth], m_tmpRecoYuv[depth]);
             std::swap(m_bestPredYuv[depth], m_tmpPredYuv[depth]);
             // copy 'next' state from last CU of next depth as next state of this CU
-            m_rdContexts[nextDepth].next.store(m_rdContexts[depth].next);
+            m_rdContexts[nextDepth].next.store(m_rdContexts[depth].temp);
         }
     }
 


More information about the x265-devel mailing list