This is of course, completly wrong.

The replacement is CryptographicBuffer, allowed in WinRT.

On 20 Nov, Jesse Jiang wrote :
> Hi Reimar,
> Because of Windows RT cannot use CryptographicBuffer or _beginthreadex API, 
> so I try to use rand() instead of it, or we need to write own function 
> instead of it. If we use WinRT api to instead of these apis, it will cause 
> more bugs.
> Best regards,Jesse
> > From: reimar.doeffin...@gmx.de
> > Date: Thu, 20 Nov 2014 09:18:30 +0100
> > To: ffmpeg-devel@ffmpeg.org
> > Subject: Re: [FFmpeg-devel] WinRT API support patch
> > 
> > On 20 November 2014 08:34:54 CET, Jesse Jiang <jessejiang0...@outlook.com> 
> > wrote:
> > >Add WinRT API supports                     
> > 
> > At least 2 fairly major issues:
> > 1) using rand() basically never is correct. Use the appropriate 
> > CryptographicBuffer function (yes, that means you need some C++ code 
> > unfortunately).
> > 2) CreateThread is not compatible with _beginthreadex, there is a good 
> > reason why we use this. Using the other without additional changes will 
> > cause memleaks or worse. I am not even sure it is at all possible to use 
> > CreateThread correctly for us.
> > 
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel@ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>                                         
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

-- 
With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to