diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-11-23 21:43:54 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-12-02 00:06:03 +0100 |
commit | bad4e112a24a5c857120c7a7b3bff9a304f6acaa (patch) | |
tree | 2b7e6eeff24abf49b7ac04b3bd147c565ba2997c /libavformat/microdvddec.c | |
parent | ad5d72b1235a58442c231c3e9b8d78fc4e7b422e (diff) | |
download | ffmpeg-bad4e112a24a5c857120c7a7b3bff9a304f6acaa.tar.gz |
lavf: use ff_subtitles_queue_seek() for text subtitles demuxers.
Diffstat (limited to 'libavformat/microdvddec.c')
-rw-r--r-- | libavformat/microdvddec.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/microdvddec.c b/libavformat/microdvddec.c index ecc2819943..68a5d87ab5 100644 --- a/libavformat/microdvddec.c +++ b/libavformat/microdvddec.c @@ -126,6 +126,14 @@ static int microdvd_read_packet(AVFormatContext *s, AVPacket *pkt) return ff_subtitles_queue_read_packet(µdvd->q, pkt); } +static int microdvd_read_seek(AVFormatContext *s, int stream_index, + int64_t min_ts, int64_t ts, int64_t max_ts, int flags) +{ + MicroDVDContext *microdvd = s->priv_data; + return ff_subtitles_queue_seek(µdvd->q, s, stream_index, + min_ts, ts, max_ts, flags); +} + static int microdvd_read_close(AVFormatContext *s) { MicroDVDContext *microdvd = s->priv_data; @@ -140,6 +148,7 @@ AVInputFormat ff_microdvd_demuxer = { .read_probe = microdvd_probe, .read_header = microdvd_read_header, .read_packet = microdvd_read_packet, + .read_seek2 = microdvd_read_seek, .read_close = microdvd_read_close, .flags = AVFMT_GENERIC_INDEX, }; |