<div dir="ltr">Pushed to Release_3.4 and grafted the same into default.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 12, 2020 at 2:38 PM Aruna Matheswaran <<a href="mailto:aruna@multicorewareinc.com">aruna@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 Aruna Matheswaran <<a href="mailto:aruna@multicorewareinc.com" target="_blank">aruna@multicorewareinc.com</a>><br>
# Date 1589263821 -19800<br>
# Tue May 12 11:40:21 2020 +0530<br>
# Node ID 50a7224c6a17fb6946dcaa5b8389359c388b8c84<br>
# Parent 1e3dbf09ee4f138c3bee6bf5a4bc3c9167b8f5e3<br>
csv: Fix corrupted command field in CSV summary with --abr-ladder option<br>
<br>
diff -r 1e3dbf09ee4f -r 50a7224c6a17 source/x265.cpp<br>
--- a/source/x265.cpp Wed May 06 18:40:34 2020 +0530<br>
+++ b/source/x265.cpp Tue May 12 11:40:21 2020 +0530<br>
@@ -173,7 +173,8 @@<br>
char *id = strtok(header, ":");<br>
char *head[X265_HEAD_ENTRIES];<br>
cliopt[i].encId = i;<br>
- <br>
+ cliopt[i].isAbrLadderConfig = true;<br>
+<br>
while (id && (idCount <= X265_HEAD_ENTRIES))<br>
{<br>
head[idCount] = id;<br>
@@ -195,7 +196,7 @@<br>
char* token = strtok(start, " ");<br>
while (token)<br>
{<br>
- argv[argc++] = token;<br>
+ argv[argc++] = strdup(token);<br>
token = strtok(NULL, " ");<br>
}<br>
argv[argc] = NULL;<br>
diff -r 1e3dbf09ee4f -r 50a7224c6a17 source/x265cli.cpp<br>
--- a/source/x265cli.cpp Wed May 06 18:40:34 2020 +0530<br>
+++ b/source/x265cli.cpp Tue May 12 11:40:21 2020 +0530<br>
@@ -370,6 +370,13 @@<br>
<br>
void CLIOptions::destroy()<br>
{<br>
+ if (isAbrLadderConfig)<br>
+ {<br>
+ for (int idx = 1; idx < argCnt; idx++)<br>
+ free(argString[idx]);<br>
+ free(argString);<br>
+ }<br>
+<br>
if (input)<br>
input->release();<br>
input = NULL;<br>
diff -r 1e3dbf09ee4f -r 50a7224c6a17 source/x265cli.h<br>
--- a/source/x265cli.h Wed May 06 18:40:34 2020 +0530<br>
+++ b/source/x265cli.h Tue May 12 11:40:21 2020 +0530<br>
@@ -405,6 +405,7 @@<br>
char** argString;<br>
<br>
/* ABR ladder settings */<br>
+ bool isAbrLadderConfig;<br>
bool enableScaler;<br>
char* encName;<br>
char* reuseName;<br>
@@ -435,6 +436,7 @@<br>
startTime = x265_mdate();<br>
prevUpdateTime = 0;<br>
bDither = false;<br>
+ isAbrLadderConfig = false;<br>
enableScaler = false;<br>
encName = NULL;<br>
reuseName = NULL;<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>