summaryrefslogtreecommitdiff
path: root/libavformat/demux.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-06 21:00:50 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-10 07:42:46 +0200
commitf104352b918c8ec8f74c0e974cd11e366275e8e9 (patch)
tree55b79d7722b10e011ec492d6c92db89720b5cd9d /libavformat/demux.h
parent92a43ad3842b8422dd0e88cfd66cf0f284e5015a (diff)
downloadffmpeg-f104352b918c8ec8f74c0e974cd11e366275e8e9.tar.gz
avformat/utils: Move ff_add_param_change to demux_utils.c
Only demuxers have a need to add side-data to a packet. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/demux.h')
-rw-r--r--libavformat/demux.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/demux.h b/libavformat/demux.h
index 546569ae6a..03f7c22bdd 100644
--- a/libavformat/demux.h
+++ b/libavformat/demux.h
@@ -203,4 +203,12 @@ AVChapter *avpriv_new_chapter(AVFormatContext *s, int64_t id, AVRational time_ba
int ff_add_attached_pic(AVFormatContext *s, AVStream *st, AVIOContext *pb,
AVBufferRef **buf, int size);
+/**
+ * Add side data to a packet for changing parameters to the given values.
+ * Parameters set to 0 aren't included in the change.
+ */
+int ff_add_param_change(AVPacket *pkt, int32_t channels,
+ uint64_t channel_layout, int32_t sample_rate,
+ int32_t width, int32_t height);
+
#endif /* AVFORMAT_DEMUX_H */