Skip to content
  • Gwenole Beauchesne's avatar
    decoder: fix double buffer free with some VA drivers. · ab94048e
    Gwenole Beauchesne authored
    vaRenderPicture() implicitly disposes VA buffers. Some VA drivers would
    push the VA buffer object into a list of free buffers to be re-used. However,
    reference pictures (and data) that was kept would explicitly release the VA
    buffer object later on, thus possibly destroying a valid (re-used) object.
    
    Besides, some other VA drivers don't support correctly the vaRenderPicture()
    semantics for VA buffers disposal and would leak memory if there is no explicit
    vaDestroyBuffer(). The temporary workaround is to explcitily destroy VA buffers
    right after vaRenderPicture(). All VA drivers need to be aligned.
    ab94048e