]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/samidec.c
Merge commit '57231e4d5b467833fb289439cd35a92513bb55c1'
[ffmpeg] / libavformat / samidec.c
index 5f29364028eafe739311840145f7c604fc8dd13d..85fd220f4af3d0ed72c9cb50f8e9d9901bb44eb7 100644 (file)
@@ -112,6 +112,14 @@ static int sami_read_packet(AVFormatContext *s, AVPacket *pkt)
     return ff_subtitles_queue_read_packet(&sami->q, pkt);
 }
 
+static int sami_read_seek(AVFormatContext *s, int stream_index,
+                          int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
+{
+    SAMIContext *sami = s->priv_data;
+    return ff_subtitles_queue_seek(&sami->q, s, stream_index,
+                                   min_ts, ts, max_ts, flags);
+}
+
 static int sami_read_close(AVFormatContext *s)
 {
     SAMIContext *sami = s->priv_data;
@@ -126,6 +134,7 @@ AVInputFormat ff_sami_demuxer = {
     .read_probe     = sami_probe,
     .read_header    = sami_read_header,
     .read_packet    = sami_read_packet,
+    .read_seek2     = sami_read_seek,
     .read_close     = sami_read_close,
     .flags          = AVFMT_GENERIC_INDEX,
     .extensions     = "smi,sami",