diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-05-06 20:33:40 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-05-10 07:42:19 +0200 |
commit | d2da1dc4433367226024fa3ae2c747e55353f620 (patch) | |
tree | d72ffa479f87b092841abfdd37f9535d78912e59 /libavformat/demux_utils.c | |
parent | ff0e8e14c3e9d1003153324d0368735dd84cb4b7 (diff) | |
download | ffmpeg-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.c | 10 |
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; + } +} |