<div dir="ltr">This crashes on 3 of the first 5 commandlines in the smoke test.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 26, 2015 at 10:57 AM, <span dir="ltr"><<a href="mailto:gopu@multicorewareinc.com" target="_blank">gopu@multicorewareinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Gopu Govindaswamy <<a href="mailto:gopu@multicorewareinc.com">gopu@multicorewareinc.com</a>><br>
# Date 1435296461 -19800<br>
# Fri Jun 26 10:57:41 2015 +0530<br>
# Node ID 6d7b0c5585cc6498ef40ddcf4a0d3c241892d5bf<br>
# Parent 09193c05af52b2024635037dbf9fa19d4b978e4b<br>
motion: skip the ME search if any of MVC sad cost is zero<br>
<br>
diff -r 09193c05af52 -r 6d7b0c5585cc source/encoder/motion.cpp<br>
--- a/source/encoder/motion.cpp Fri Jun 26 10:16:29 2015 +0530<br>
+++ b/source/encoder/motion.cpp Fri Jun 26 10:57:41 2015 +0530<br>
@@ -646,7 +646,15 @@<br>
MV m = mvc[i].clipped(qmvmin, qmvmax);<br>
if (m.notZero() && m != pmv && m != bestpre) // check already measured<br>
{<br>
- int cost = subpelCompare(ref, m, sad) + mvcost(m);<br>
+ int cost = subpelCompare(ref, m, sad);<br>
+ // skip ME Search if any of MVC sad cost is zero<br>
+ if (!cost)<br>
+ {<br>
+ outQMv = m;<br>
+ return mvcost(m);<br>
+ }<br>
+ else<br>
+ cost += mvcost(m);<br>
if (cost < bprecost)<br>
{<br>
bprecost = cost;<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
</blockquote></div><br></div>