summaryrefslogtreecommitdiff
path: root/libavformat/demux_utils.c
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/demux_utils.c
parentff0e8e14c3e9d1003153324d0368735dd84cb4b7 (diff)
downloadffmpeg-d2da1dc4433367226024fa3ae2c747e55353f620.tar.gz
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/demux_utils.c')
-rw-r--r--libavformat/demux_utils.c10
1 files changed, 10 insertions, 0 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;
+ }
+}