• Danny Wu's avatar
    fftools/ffmpeg: Restore DTS correction for VP9 copies · 68595b46
    Danny Wu authored
    Fixes ticket 9086.
    
    Since early 2021, some of YouTube's VP9 encodes have non-monotonous DTS.
    This makes ffmpeg fatally fail when trying to copy or encode the V9 video.
    
    ffmpeg already includes functionality to correct this, however it was
    disabled without explanation for VP9 stream copies in
    2e6636aa
    
    This patch restores the DTS correction logic, and allows ffmpeg to correctly
    encode (invalid) videos produced by youtube.com. I have verified that frames
    are NOT being cut (so it does not re-introduce 4313).
    Reviwed-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
    Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
    68595b46
ffmpeg.c 168 KB