• Anton Khirnov's avatar
    pthread_frame: do not run hwaccel decoding asynchronously unless it's safe · d4a91e65
    Anton Khirnov authored
    Certain hardware decoding APIs are not guaranteed to be 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).
    
    For such hwaccels, only allow the decoding thread to run while the user
    is inside a lavc decode call (avcodec_send_packet/receive_frame).
    d4a91e65
avcodec.h 176 KB