aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/subtitles.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-07-08 23:05:08 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-07-18 04:26:35 +0200
commitea5bdc8893e4c1d5c3b417afad78ccedaa831789 (patch)
treeffe3ceb74f180034696d6dfc503c939117ac38c8 /libavformat/subtitles.h
parentef1302db2db67d483fcc37b0bbced61394c3620b (diff)
downloadffmpeg-ea5bdc8893e4c1d5c3b417afad78ccedaa831789.tar.gz
avformat/subtitles: Deduplicate subtitles' read_(packet|seek|close)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/subtitles.h')
-rw-r--r--libavformat/subtitles.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/subtitles.h b/libavformat/subtitles.h
index ca769639be..37ca7b19b1 100644
--- a/libavformat/subtitles.h
+++ b/libavformat/subtitles.h
@@ -143,6 +143,13 @@ int ff_subtitles_queue_seek(FFDemuxSubtitlesQueue *q, AVFormatContext *s, int st
*/
void ff_subtitles_queue_clean(FFDemuxSubtitlesQueue *q);
+int ff_subtitles_read_packet(AVFormatContext *s, AVPacket *pkt);
+
+int ff_subtitles_read_seek(AVFormatContext *s, int stream_index,
+ int64_t min_ts, int64_t ts, int64_t max_ts, int flags);
+
+int ff_subtitles_read_close(AVFormatContext *s);
+
/**
* SMIL helper to load next chunk ("<...>" or untagged content) in buf.
*