• Timo Rothenpieler's avatar
    avcodec/nvenc: only unregister input resources when absolutely needed · 23ed147e
    Timo Rothenpieler authored
    This reverts nvenc to old behaviour, which in some super rare edge cases
    performs better.
    The implication of this is that any potential API user who relies on
    nvenc cleaning up every frames device resources after it's done using
    them will have to change their usage pattern.
    
    That should not be a problem, since pretty much every normal usage
    pattern automatically implies that surfaces are reused from a common
    pool, since constant re-allocation is also very expensive.
    23ed147e
nvenc.c 74.1 KB