Quoting Anton Khirnov (2016-11-24 19:19:59) > Only allow the decoding thread to run while the user is inside a lavc > decode call (avcodec_send_packet/receive_frame). > Hardware decoding APIs are often not thread-safe, so having the user > access decoded hardware surfaces while the decoder is running in another > thread can cause failures (this is mainly known to happen with DXVA2). > --- > libavcodec/pthread_frame.c | 58 > +++++++++++++++++++++++++++++++++++++++++----- > 1 file changed, 52 insertions(+), 6 deletions(-)
Disregard this patch for now, further testing has revealed significant problems in it. I will resend when it's been fixed and sufficiently tested. -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
