[FFmpeg-devel] dxva2 patch

Steve Lhomme robux4 at videolabs.io
Wed Jun 15 08:43:35 CEST 2016


On Wed, Jun 8, 2016 at 8:57 AM, Денис Кулаков <kudesnik33ra at gmail.com> 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, otherwise it will not be released
> - so after E_PENDING context mutex will never be released.

You are correct, the should not be in the while, or we should release
the lock when we loop again, so that another thread has a chance to do
something with the video_context.

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list