<div dir="ltr"><div dir="ltr">On Fri, Feb 8, 2019 at 4:04 PM <<a href="mailto:pooja@multicorewareinc.com">pooja@multicorewareinc.com</a>> wrote:<br></div><div class="gmail_quote"><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 Pooja Venkatesan <<a href="mailto:pooja@multicorewareinc.com" target="_blank">pooja@multicorewareinc.com</a>><br>
# Date 1549621973 -19800<br>
#      Fri Feb 08 16:02:53 2019 +0530<br>
# Node ID dcbec33bfb0f1cabdb1ff9eaadba5305ba23e6fa<br>
# Parent  5b90dc59b57a8ea8f4fb269400c2335be3bb73c1<br>
zone: Fix encoder crash in linux<br>
<br>
Handle passing NULL to strdup()<br></blockquote><div><br></div><div>Pushed to default. Thanks for the fix.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
diff -r 5b90dc59b57a -r dcbec33bfb0f source/encoder/encoder.cpp<br>
--- a/source/encoder/encoder.cpp        Thu Feb 07 16:29:36 2019 +0530<br>
+++ b/source/encoder/encoder.cpp        Fri Feb 08 16:02:53 2019 +0530<br>
@@ -2651,7 +2651,8 @@<br>
     p->bEnableRectInter = zone->bEnableRectInter;<br>
     p->maxNumMergeCand = zone->maxNumMergeCand;<br>
     p->bIntraInBFrames = zone->bIntraInBFrames;<br>
-    p->scalingLists = strdup(zone->scalingLists);<br>
+    if(zone->scalingLists)<br>
+        p->scalingLists = strdup(zone->scalingLists);<br>
<br>
     p->rc.aqMode = zone->rc.aqMode;<br>
     p->rc.aqStrength = zone->rc.aqStrength;<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></div>