• Anton Khirnov's avatar
    nvenc: generate dts properly · c59fec78
    Anton Khirnov authored
    When there is a non-zero decoding delay due to reordering, the first dts
    should be lower than the first pts (since the first packet fed to the
    decoder does not produce any output).
    
    Use the same scheme used in mpegvideo_enc (which comes from x264
    originally) -- wait for first two timestamps and extrapolate linearly to
    the past to produce the first dts value.
    c59fec78
nvenc.h 3.61 KB