aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/demux.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-07 08:43:22 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-10 07:49:01 +0200
commit9825d488d6fdfb7c14d2d702d1a890311f5b2943 (patch)
tree1af99774655a8bd0815387651eeab1d853364ca8 /libavformat/demux.h
parent493356cc0bd8386a247ed79e4ea381e8fbdbd057 (diff)
downloadffmpeg-9825d488d6fdfb7c14d2d702d1a890311f5b2943.tar.gz
avformat/utils: Move ff_find_stream_index to demux_utils.c
It is only used by demuxers (and it is generally demuxers who have to translate format-specific IDs to stream indices). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/demux.h')
-rw-r--r--libavformat/demux.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/demux.h b/libavformat/demux.h
index 209cd813ab..a008c3dba1 100644
--- a/libavformat/demux.h
+++ b/libavformat/demux.h
@@ -226,4 +226,10 @@ int ff_generate_avci_extradata(AVStream *st);
*/
int ff_get_extradata(void *logctx, AVCodecParameters *par, AVIOContext *pb, int size);
+/**
+ * Find stream index based on format-specific stream ID
+ * @return stream index, or < 0 on error
+ */
+int ff_find_stream_index(const AVFormatContext *s, int id);
+
#endif /* AVFORMAT_DEMUX_H */