[vlc-devel] [PATCH] DxVA2: fix compatibility with avcodec frame multithreading

Rémi Denis-Courmont remi at remlab.net
Tue Apr 7 17:56:53 CEST 2015

Le 2015-04-03 17:48, Steve Lhomme a écrit :
> There is a race condition when seeking in H264 :(

I have never seen this in VDPAU with recent libav libavcodec.

Anyhow undefined behaviour is undefined. You have to fix libavcodec or 
get a working version of it.

> Sometimes the Release() callback is called with a garbage `opaque`
> variable, which is supposed to be our vlc_va_surface_t object...

Are you sure the dxva2 plugin is not freeing surfaces outside of 
AVCodecContext.release_buffer - even though libavcodec is still holding 
the picture?

Rémi Denis-Courmont

More information about the vlc-devel mailing list