[x265] [PATCH] analysis: Share only if best reference is valid
gopu at multicorewareinc.com
gopu at multicorewareinc.com
Fri Feb 27 12:53:14 CET 2015
# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1425017769 -19800
# Fri Feb 27 11:46:09 2015 +0530
# Node ID 018e8bbaa854b1a4bd82b3a2e23f7775a77da5cc
# Parent 394c2f94a2dc5d0e9e6d1c063361b19b86b88cf6
analysis: Share only if best reference is valid
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 @@
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-devel
mailing list