<div dir="ltr">  Pushed into Release_3.1, Release_3.2 and default.  <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 7, 2020 at 7:14 PM Snehaa Giridharan <<a href="mailto:snehaa@multicorewareinc.com">snehaa@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"># HG changeset patch<br># User Snehaa Giridharan <<a href="mailto:snehaa@multicorewareinc.com" target="_blank">snehaa@multicorewareinc.com</a>><br># Date 1578404459 -19800<br>#      Tue Jan 07 19:10:59 2020 +0530<br># Node ID ba3a323971111472b2240e45cb3b6e7824a25ce4<br># Parent  2b8ee235997fabcad221069ecf8a80d0d50c9133<br>Fix segmentation fault with svt enabled build and modify library install path<br><br>This commit<br>1. Fixes segmentation fault on running x265 encodes via svt integrated build.<br>2. Modifies library install path of SVT from bin to library folder.<br><br>diff -r 2b8ee235997f -r ba3a32397111 source/CMakeLists.txt<br>--- a/source/CMakeLists.txt     Wed Dec 11 16:11:24 2019 +0530<br>+++ b/source/CMakeLists.txt     Tue Jan 07 19:10:59 2020 +0530<br>@@ -573,7 +573,7 @@<br> if(SVTHEVC_FOUND)<br>     install(FILES "${SVT_HEVC_INCLUDE_DIR}/EbApi.h" DESTINATION include)<br>     install(FILES "${SVT_HEVC_INCLUDE_DIR}/EbErrorCodes.h" DESTINATION include)<br>-    install(FILES "${SVT_HEVC_LIBRARY}" DESTINATION ${BIN_INSTALL_DIR})<br>+    install(FILES "${SVT_HEVC_LIBRARY}" DESTINATION ${LIB_INSTALL_DIR})<br> endif()<br> <br> install(FILES x265.h "${PROJECT_BINARY_DIR}/x265_config.h" DESTINATION include)<br>diff -r 2b8ee235997f -r ba3a32397111 source/encoder/api.cpp<br>--- a/source/encoder/api.cpp      Wed Dec 11 16:11:24 2019 +0530<br>+++ b/source/encoder/api.cpp    Tue Jan 07 19:10:59 2020 +0530<br>@@ -415,12 +415,12 @@<br> <br> #ifdef SVT_HEVC<br>     EB_ERRORTYPE return_error;<br>-    static unsigned char picSendDone = 0;<br>-    numEncoded = 0;<br>-    static int codedNal = 0, eofReached = 0;<br>-      EB_H265_ENC_CONFIGURATION* svtParam = (EB_H265_ENC_CONFIGURATION*)encoder->m_svtAppData->svtHevcParams;<br>     if (encoder->m_param->bEnableSvtHevc)<br>     {<br>+        static unsigned char picSendDone = 0;<br>+        numEncoded = 0;<br>+        static int codedNal = 0, eofReached = 0;<br>+        EB_H265_ENC_CONFIGURATION* svtParam = (EB_H265_ENC_CONFIGURATION*)encoder->m_svtAppData->svtHevcParams;<br>         if (pic_in)<br>         {<br>             if (pic_in->colorSpace == X265_CSP_I420) // SVT-HEVC supports only yuv420p color space<br><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><i><font face="times new roman, serif">Thanks and Regards,</font></i></div><div><i><b><font face="times new roman, serif">Snehaa.G</font></b></i></div></div></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>