• wm4's avatar
    avformat/subtitles: treat negative duration like unknown duration · a0ec4aeb
    wm4 authored
    Fixes a specific srt sample, which has an event with negative duration.
    libavcodec will convert an event with negative duration to an ASS event
    which will be displayed forever, which is not wanted here.
    
    Treat negative duration always as unknown duration instead, and show it
    until the next subtitle event.
    a0ec4aeb
subtitles.c 11.5 KB