<div dir="ltr"># HG changeset patch<br># User Shushuang <<a href="mailto:shushang@multicorewareinc.com" target="_blank">shushang@multicorewareinc.com</a>><br># Date 1559023314 -28800<br># Tue May 28 14:01:54 2019 +0800<br># Node ID a46ded2c14116af1cafacdc1fb98be43259dc7d6<br># Parent 4583000db964b8b942c55f532216a3696fcf69ea<br>Fix Windows 32bit build errors <div><br></div><div>Pushed patch to x265 default repo.</div><div><br></div><div>Thanks & Regards,<br>Dinesh <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 28, 2019 at 12:05 PM Shushuang Yan <<a href="mailto:shushang@multicorewareinc.com">shushang@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 Shushuang <<a href="mailto:shushang@multicorewareinc.com" target="_blank">shushang@multicorewareinc.com</a>><br># Date 1559023314 -28800<br># Tue May 28 14:01:54 2019 +0800<br># Node ID a46ded2c14116af1cafacdc1fb98be43259dc7d6<br># Parent 4583000db964b8b942c55f532216a3696fcf69ea<br>Fix Windows 32bit build errors<br><br>diff -r 4583000db964 -r a46ded2c1411 source/x265.cpp<br>--- a/source/x265.cpp Mon May 27 11:48:25 2019 +0530<br>+++ b/source/x265.cpp Tue May 28 14:01:54 2019 +0800<br>@@ -1017,8 +1017,9 @@<br> picField1.height = picField2.height = pic_in->height >> 1;<br> picField1.framesize = picField2.framesize = pic_in->framesize >> 1;<br> <br>- char* field1Buf = X265_MALLOC( char, pic_in->framesize >> 1 );<br>- char* field2Buf = X265_MALLOC( char, pic_in->framesize >> 1 );<br>+ size_t fieldFrameSize = (size_t)pic_in->framesize >> 1;<br>+ char* field1Buf = X265_MALLOC(char, fieldFrameSize);<br>+ char* field2Buf = X265_MALLOC(char, fieldFrameSize);<br> <br> int stride = picField1.stride[0] = picField2.stride[0] = pic_in->stride[0];<br> uint64_t framesize = stride * (height >> x265_cli_csps[pic_in->colorSpace].height[0]);<br><div><br></div>-- <br><div dir="ltr" class="gmail-m_1789544735548056164gmail_signature"><div dir="ltr"><div>Thanks,</div>Shushuang Yan</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>