I built a player using libvlc and it worked fine for many years, but lately it doesn't play some videos well. I had the same problem on VLC player, setting VLC Direct3D11. On my player however it doesn't work and I add "--avcodec-hw=d3d11va" and a message Using DXVA2 for hardware decoding appears.
How can I fix this?