<div dir="ltr">Thanks! Pushed into Release_3.1 and grafted it to Release_3.2 and default.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 26, 2019 at 9:08 AM <<a href="mailto:kirithika@multicorewareinc.com">kirithika@multicorewareinc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"># HG changeset patch<br>
# User Kirithika <<a href="mailto:kirithika@multicorewareinc.com" target="_blank">kirithika@multicorewareinc.com</a>><br>
# Date 1577092232 -19800<br>
#      Mon Dec 23 14:40:32 2019 +0530<br>
# Node ID 09a92be151a276aec54f402456ca97576f5cfef3<br>
# Parent  a8a2c4c37267305d1a6b828ad06f83b5c9c81d00<br>
Fix VBV macroblocking that comes up with the last Intra frame<br>
<br>
This patch enables the VBV Lookahead computation of an I Slice to consider the<br>
last MiniGop frames available in the lookahead,hence fixing the VBV macroblocking<br>
issue that comes due to lack of frames in the Lookahead at the end of the video.<br>
<br>
diff -r a8a2c4c37267 -r 09a92be151a2 source/encoder/slicetype.cpp<br>
--- a/source/encoder/slicetype.cpp      Tue Dec 10 17:37:23 2019 +0530<br>
+++ b/source/encoder/slicetype.cpp      Mon Dec 23 14:40:32 2019 +0530<br>
@@ -1775,7 +1775,7 @@<br>
     if (m_param->bBPyramid && curNonB - prevNonB > 1)<br>
         curBRef = (prevNonB + curNonB + 1) / 2;<br>
     int miniGopEnd = keyframe ? prevNonB : curNonB;<br>
-    while (curNonB < numFrames + !keyframe)<br>
+    while (curNonB <= numFrames)<br>
     {<br>
         /* P/I cost: This shouldn't include the cost of nextNonB */<br>
         if (nextNonB != curNonB)<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org" target="_blank">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 clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font face="georgia, serif">Regards,</font><div><b><font face="georgia, serif">Aruna Matheswaran,</font></b></div><div><font face="georgia, serif">Video Codec Engineer,</font></div><div><font face="georgia, serif">Media & AI analytics BU,</font></div><div><span><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><span style="border:none;display:inline-block;overflow:hidden;width:153px;height:58px"><img src="https://lh5.googleusercontent.com/gjX5cPNIZgwUrhfqkTwQUZWztIKmmo0qs3kbwvkS5H-bDVE2ftte9pMTVnFLSjOcjYWLtfc6_OGpxW4vraLg2r5QAIf1Q3MpldFDgWtzK_gXi8ptw5B3joIbsGL6mxj-JRdjHzT5" width="96" height="36" style="margin-left: 0px; margin-top: 0px;"></span></span></span><font face="georgia, serif"><br></font></div><div><span><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><span style="border:none;display:inline-block;overflow:hidden;width:153px;height:58px"><img src="https://lh5.googleusercontent.com/gjX5cPNIZgwUrhfqkTwQUZWztIKmmo0qs3kbwvkS5H-bDVE2ftte9pMTVnFLSjOcjYWLtfc6_OGpxW4vraLg2r5QAIf1Q3MpldFDgWtzK_gXi8ptw5B3joIbsGL6mxj-JRdjHzT5" style="margin-left: 0px; margin-top: 0px;"></span></span></span><font face="georgia, serif"><br></font></div><div><font face="georgia, serif"><br></font></div></div></div></div></div></div></div></div></div>