Re: [FFmpeg-devel] dxva2 patch

2016-06-14 Thread Steve Lhomme
On Wed, Jun 8, 2016 at 8:57 AM, Денис Кулаков wrote: > In dxva2 code there is bug with context_mutex usage - > if ID3D11VideoContext_DecoderBeginFrame return E_PENDING - > WaitForSingleObjectEx(context_mutex) will be called again, but each call to > it must have corresponding ReleaseMutex, otherwi

[FFmpeg-devel] dxva2 patch

2016-06-08 Thread Денис Кулаков
In dxva2 code there is bug with context_mutex usage - if ID3D11VideoContext_DecoderBeginFrame return E_PENDING - WaitForSingleObjectEx(context_mutex) will be called again, but each call to it must have corresponding ReleaseMutex, otherwise it will not be released - so after E_PENDING context mutex