<div dir="ltr">Pushed to master and cherry-picked the fix into Release_3.4.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 18, 2020 at 5:53 PM Kirithika Kalirathnam <<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"><div dir="ltr">From b3916d57398109761198c970c5cbb1d70f5767cf Mon Sep 17 00:00:00 2001<br>From: Kirithika <<a href="mailto:kirithika@multicorewareinc.com" target="_blank">kirithika@multicorewareinc.com</a>><br>Date: Tue, 18 Aug 2020 14:21:18 +0530<br>Subject: [PATCH] vbv: Fix vbv lookahead computation on analysis<br> load+scalefactor<br><br>---<br> source/encoder/slicetype.cpp | 6 +++---<br> 1 file changed, 3 insertions(+), 3 deletions(-)<br><br>diff --git a/source/encoder/slicetype.cpp b/source/encoder/slicetype.cpp<br>index 81d2adbe6..4e52e584c 100644<br>--- a/source/encoder/slicetype.cpp<br>+++ b/source/encoder/slicetype.cpp<br>@@ -1513,7 +1513,7 @@ void Lookahead::slicetypeDecide()<br> if (!fenc)<br> break;<br> }<br>- vbvLookahead(frames, numFrames, true);<br>+ vbvLookahead(frames, numFrames, false);<br> }<br> }<br> <br>@@ -1784,7 +1784,7 @@ void Lookahead::slicetypeDecide()<br> void Lookahead::vbvLookahead(Lowres **frames, int numFrames, int keyframe)<br> {<br> int prevNonB = 0, curNonB = 1, idx = 0;<br>- while (curNonB < numFrames && frames[curNonB]->sliceType == X265_TYPE_B)<br>+ while (curNonB < numFrames && IS_X265_TYPE_B(frames[curNonB]->sliceType))<br> curNonB++;<br> int nextNonB = keyframe ? prevNonB : curNonB;<br> int nextB = prevNonB + 1;<br>@@ -1851,7 +1851,7 @@ void Lookahead::vbvLookahead(Lowres **frames, int numFrames, int keyframe)<br> }<br> prevNonB = curNonB;<br> curNonB++;<br>- while (curNonB <= numFrames && frames[curNonB]->sliceType == X265_TYPE_B)<br>+ while (curNonB <= numFrames && IS_X265_TYPE_B(frames[curNonB]->sliceType))<br> curNonB++;<br> }<br> <br>-- <br>2.24.0.windows.2<br><br><div><div dir="ltr"><div dir="ltr"><i>Thanks,</i><div><i>Kirithika</i></div></div></div></div></div>
_______________________________________________<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>