summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
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/utils.c
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/utils.c')
-rw-r--r--libavformat/utils.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index c8d975ddcc..68ea1d1050 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -644,14 +644,6 @@ void ff_parse_key_value(const char *str, ff_parse_key_val_cb callback_get_buf,
}
}
-int ff_find_stream_index(const AVFormatContext *s, int id)
-{
- for (unsigned i = 0; i < s->nb_streams; i++)
- if (s->streams[i]->id == id)
- return i;
- return -1;
-}
-
int avformat_network_init(void)
{
#if CONFIG_NETWORK