[x265-commits] [x265] analysis: Share only if best reference is valid

Gopu Govindaswamy gopu at multicorewareinc.com
Fri Feb 27 16:58:47 CET 2015


details:   http://hg.videolan.org/x265/rev/018e8bbaa854
branches:  
changeset: 9598:018e8bbaa854
user:      Gopu Govindaswamy <gopu at multicorewareinc.com>
date:      Fri Feb 27 11:46:09 2015 +0530
description:
analysis: Share only if best reference is valid

diffstat:

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

diffs (12 lines):

diff -r 394c2f94a2dc -r 018e8bbaa854 source/encoder/search.cpp
--- 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++)
             {


More information about the x265-commits mailing list