<div dir="ltr">Pushed.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 1, 2017 at 1:33 PM, <span dir="ltr"><<a href="mailto:santhoshini@multicorewareinc.com" target="_blank">santhoshini@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 Santhoshini Sekar <<a href="mailto:santhoshini@multicorewareinc.com">santhoshini@multicorewareinc.<wbr>com</a>><br>
# Date 1512043592 -19800<br>
# Thu Nov 30 17:36:32 2017 +0530<br>
# Branch stable<br>
# Node ID f9d08feabf7b2607561d337e504865<wbr>7a786a7c68<br>
# Parent b0d89eaaebcf3534204e054243d402<wbr>b6cf646234<br>
deblock: set reference frame to NULL if refIdx < 0. Dereferencing refFrameList when<br>
refIdx < 0 is not valid<br>
<br>
diff --git a/source/common/deblock.cpp b/source/common/deblock.cpp<br>
--- a/source/common/deblock.cpp<br>
+++ b/source/common/deblock.cpp<br>
@@ -208,8 +208,8 @@<br>
const Slice* const sliceQ = cuQ->m_slice;<br>
const Slice* const sliceP = cuP->m_slice;<br>
<br>
- const Frame* refP0 = sliceP->m_refFrameList[0][cuP-<wbr>>m_refIdx[0][partP]];<br>
- const Frame* refQ0 = sliceQ->m_refFrameList[0][cuQ-<wbr>>m_refIdx[0][partQ]];<br>
+ const Frame* refP0 = (cuP->m_refIdx[0][partP] >= 0) ? sliceP->m_refFrameList[0][cuP-<wbr>>m_refIdx[0][partP]] : NULL;<br>
+ const Frame* refQ0 = (cuQ->m_refIdx[0][partQ] >= 0) ? sliceQ->m_refFrameList[0][cuQ-<wbr>>m_refIdx[0][partQ]] : NULL;<br>
const MV& mvP0 = refP0 ? cuP->m_mv[0][partP] : zeroMv;<br>
const MV& mvQ0 = refQ0 ? cuQ->m_mv[0][partQ] : zeroMv;<br>
<br>
@@ -220,8 +220,8 @@<br>
}<br>
<br>
// (sliceQ->isInterB() || sliceP->isInterB())<br>
- const Frame* refP1 = sliceP->m_refFrameList[1][cuP-<wbr>>m_refIdx[1][partP]];<br>
- const Frame* refQ1 = sliceQ->m_refFrameList[1][cuQ-<wbr>>m_refIdx[1][partQ]];<br>
+ const Frame* refP1 = (cuP->m_refIdx[1][partP] >= 0) ? sliceP->m_refFrameList[1][cuP-<wbr>>m_refIdx[1][partP]] : NULL;<br>
+ const Frame* refQ1 = (cuQ->m_refIdx[1][partQ] >= 0) ? sliceQ->m_refFrameList[1][cuQ-<wbr>>m_refIdx[1][partQ]] : NULL;<br>
const MV& mvP1 = refP1 ? cuP->m_mv[1][partP] : zeroMv;<br>
const MV& mvQ1 = refQ1 ? cuQ->m_mv[1][partQ] : zeroMv;<br>
<br>
<br>______________________________<wbr>_________________<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/<wbr>listinfo/x265-devel</a><br>
<br></blockquote></div><br></div>