<div dir="ltr">Hello all,<div><br></div><div>My video player is using FFmpeg to decode h.264 video, the player is running on a windows machine, and I faced an interesting issue during decoding, using hardware acceleration, the <b>hwdevice </b>is d3d11va.</div><div>From time to time when calling avcodec_send_packet, the thread is blocked forever, I found that the block is on d3d11va_default_lock function in hwcontext_d3d11va.c line 94. (<a href="https://www.ffmpeg.org/doxygen/trunk/hwcontext__d3d11va_8c.html#a072dc47eb86d10cfbb65085c5a40be4a">https://www.ffmpeg.org/doxygen/trunk/hwcontext__d3d11va_8c.html#a072dc47eb86d10cfbb65085c5a40be4a</a>)</div><div>using trace logs and dump files I don't see any "classic" deadlock, and I don't understand why this thread can be blocked if the Mutex object suppose to be free to take.</div><div>This issue is not reproduced when I set outside the library a Critical Section instead of the original Mutex, using callbacks in AVD3D11VADeviceContext struct.<br></div><div><br></div><div>did someone familiar with this kind of extraordinary issue?</div><div><br></div><div>Thanks in advance,</div><div>Asaf</div><br><div><br></div></div>