]> git.sesse.net Git - ffmpeg/commit
lavf/subtitles: add ff_subtitles_queue_seek().
authorClément Bœsch <ubitux@gmail.com>
Fri, 23 Nov 2012 20:40:46 +0000 (21:40 +0100)
committerClément Bœsch <ubitux@gmail.com>
Sat, 1 Dec 2012 23:06:03 +0000 (00:06 +0100)
commitff3624b1ad9dc4374c9adf7ba65ac3ed6d05c0e5
tree28584a27b9fa6278fda392c1ca7bf1d3d0191300
parentb684f744ac1e4c5cbd6ac91d2be6098e1b122288
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.
libavformat/subtitles.c
libavformat/subtitles.h