changeset 9598:018e8bbaa854

analysis: Share only if best reference is valid
author Gopu Govindaswamy <gopu@multicorewareinc.com>
date Fri, 27 Feb 2015 11:46:09 +0530
parents 394c2f94a2dc
children 6a9cff19ca93
files source/encoder/search.cpp
diffstat 1 files changed, 1 insertions(+-), 1 deletions(-) [+]
line wrap: on
line diff
--- a/source/encoder/search.cpp	Thu Feb 26 15:26:39 2015 -0600
+++ b/source/encoder/search.cpp	Fri Feb 27 11:46:09 2015 +0530
@@ -2047,7 +2047,7 @@ void Search::predInterSearch(Mode& inter
         bool bDoUnidir = true;
 
         /* Uni-directional prediction */
-        if (m_param->analysisMode == X265_ANALYSIS_LOAD)
+        if (m_param->analysisMode == X265_ANALYSIS_LOAD && bestME[0].ref >= 0)
         {
             for (int l = 0; l < numPredDir; l++)
             {