]> git.sesse.net Git - ffmpeg/commit
avformat/subtitles: treat negative duration like unknown duration
authorwm4 <nfxjfg@googlemail.com>
Wed, 23 Dec 2015 14:08:58 +0000 (15:08 +0100)
committerwm4 <nfxjfg@googlemail.com>
Wed, 23 Dec 2015 14:08:58 +0000 (15:08 +0100)
commita0ec4aebabe1f816cc69e20309981907ba5d1395
tree8593fd05f90858c3f89fb7af071c4c5d44e79f28
parent57787f5ef8235f77ec9c76c064b378631168c066
avformat/subtitles: treat negative duration like unknown duration

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.
libavformat/subtitles.c