summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-06 20:33:40 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-10 07:42:19 +0200
commitd2da1dc4433367226024fa3ae2c747e55353f620 (patch)
treed72ffa479f87b092841abfdd37f9535d78912e59 /libavformat
parentff0e8e14c3e9d1003153324d0368735dd84cb4b7 (diff)
avformat/utils: Move av_format_inject_global_side_data to demux_utils.c
This function is only intended for demuxers (as calling it doesn't have any observable effect for a muxer). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/demux_utils.c10
-rw-r--r--libavformat/utils.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/libavformat/demux_utils.c b/libavformat/demux_utils.c
index cfd6084d54..0ec9f3b2fa 100644
--- a/libavformat/demux_utils.c
+++ b/libavformat/demux_utils.c
@@ -73,3 +73,13 @@ AVChapter *avpriv_new_chapter(AVFormatContext *s, int64_t id, AVRational time_ba
return chapter;
}
+
+void av_format_inject_global_side_data(AVFormatContext *s)
+{
+ FFFormatContext *const si = ffformatcontext(s);
+ si->inject_global_side_data = 1;
+ for (unsigned i = 0; i < s->nb_streams; i++) {
+ AVStream *st = s->streams[i];
+ ffstream(st)->inject_global_side_data = 1;
+ }
+}
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 1235315986..b20dad2458 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -63,16 +63,6 @@ int ff_unlock_avformat(void)
return ff_mutex_unlock(&avformat_mutex) ? -1 : 0;
}
-void av_format_inject_global_side_data(AVFormatContext *s)
-{
- FFFormatContext *const si = ffformatcontext(s);
- si->inject_global_side_data = 1;
- for (unsigned i = 0; i < s->nb_streams; i++) {
- AVStream *st = s->streams[i];
- ffstream(st)->inject_global_side_data = 1;
- }
-}
-
int ff_copy_whiteblacklists(AVFormatContext *dst, const AVFormatContext *src)
{
av_assert0(!dst->codec_whitelist &&