Clément Bœsch
378a830e7b
avformat/subtitles: support standalone CR (MacOS).
...
Recent .srt files with CR only were found in the wild.
11 years ago
Clément Bœsch
b1319e14e3
avformat/subtitles: binary search seeking.
11 years ago
Clément Bœsch
1ca4bf930b
avformat/subtitles: check lower bound for duration overlap seeking.
11 years ago
Clément Bœsch
f8678dcef3
avformat/vobsub: fix seeking.
11 years ago
Michael Niedermayer
5c504e4df7
vformat/subtitles: check av_copy_packets return code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Reimar Döffinger
88d55b827d
Remove incorrect use of ctype.h functions.
...
As far as I can tell the code should not change behaviour
depending on locale in any of these places.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years ago
Michael Niedermayer
aa86d2d884
lavf: move stream==-1 handling from ff_subtitles_queue_seek() to avformat_seek_file()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
d9ac8d2967
lavf: move srtdec:read_chunk() to subtitles utils.
...
This function can be useful for various other subtitles formats.
12 years ago
Clément Bœsch
ad5d72b123
lavf/subtitles: seek a little more backward when necessary.
...
If some previous subtitles are overlapping with the current time
we make sure they are raised so the renderer can display them too.
12 years ago
Clément Bœsch
ff3624b1ad
lavf/subtitles: add ff_subtitles_queue_seek().
...
This function is almost identical to lavf/assdec:read_seek2(). It
performs a generic seek for text subtitles demuxers for the new seeking
API.
The only difference with assdec:read_seek2 is the ts_diff being
unsigned to avoid overflows.
The seek callback in the ASS demuxer will be removed when it is
redesigned to use FFDemuxSubtitlesQueue.
12 years ago
Clément Bœsch
d948893dbd
lavf/subtitles: add some SMIL helpers.
...
This is needed for SAMI and RealText demuxers.
13 years ago
Clément Bœsch
7c9f9685ae
lavf: add internal demuxer helpers for subtitles.
13 years ago