• Timo Rothenpieler's avatar
    avcodec/nvenc: refactor dts calculation logic · 9ce7de90
    Timo Rothenpieler authored
    The old approach used some highly complex delta computation math and
    output-delaying.
    I do not remember what the initial reasoning behind that was, but given
    that we can just offset the dts by the amount of bframes, it seems wholy
    unnecessary.
    
    This leaves open an issue with VFR content, for which some more complex
    logic might be needed.
    Signed-off-by: 's avatarTimo Rothenpieler <timo@rothenpieler.org>
    9ce7de90
nvenc.c 75.1 KB