1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00
FFmpeg/libavformat
Adam Sampson bfa33f548d lavf/jacosubdec: compute subtitle duration correctly
When a JACOsub subtitle has two timestamps, they represent its start and
end times (http://unicorn.us.com/jacosub/jscripts.html#l_times); the
duration is the difference between the two, not the sum of the two.

The subtitle end times in the FATE test for this were wrong as a result;
fix them too. (This test is based on JACOsub's demo.txt, and the end
time computed for the last line using @ now matches what the comments
there say it should be.)

Also tested in practice using MPV, a LaserDisc, and some authentic 1993
JACOsub files.

Signed-off-by: Adam Sampson <ats@offog.org>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-02-20 21:15:07 +01:00
..
2018-07-14 19:04:48 +02:00
2019-01-02 16:21:46 +01:00
2019-01-15 10:57:29 +01:00
2019-01-02 16:28:46 +01:00
2019-01-02 16:14:19 +01:00
2018-12-13 18:58:48 +01:00
2019-01-16 10:26:53 +01:00
2019-01-15 10:57:29 +01:00
2019-02-18 23:08:38 +01:00
2018-08-14 22:06:30 +05:30
2018-12-14 21:53:41 +01:00
2018-09-11 21:48:49 +01:00
2019-01-27 13:53:29 +01:00
2018-10-13 15:40:08 +02:00
2018-11-26 23:47:29 +01:00
2019-01-02 16:25:26 +01:00