aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mov_chan.h
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2024-02-10 00:56:56 +0100
committerMarton Balint <cus@passwd.hu>2024-02-18 10:54:24 +0100
commitf8f2142d61aa3d466ce153ab61260dbef25099fb (patch)
treef9fc06008713530da12073cd8869f872245dd84c /libavformat/mov_chan.h
parent65c9c52a5aa9f6a0651b7f3302c8f140b3a322e5 (diff)
downloadffmpeg-f8f2142d61aa3d466ce153ab61260dbef25099fb.tar.gz
avformat/mov: factorize reading the main part of the chnl atom to mov_chan
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/mov_chan.h')
-rw-r--r--libavformat/mov_chan.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavformat/mov_chan.h b/libavformat/mov_chan.h
index 8c807798ab..b7d435b99f 100644
--- a/libavformat/mov_chan.h
+++ b/libavformat/mov_chan.h
@@ -189,4 +189,14 @@ int ff_mov_get_channel_positions_from_layout(const AVChannelLayout *layout,
int ff_mov_get_layout_from_channel_positions(const uint8_t *position, int position_num,
AVChannelLayout *layout);
+/**
+ * Read 'chnl' tag from the input stream.
+ *
+ * @param s AVFormatContext
+ * @param pb AVIOContext
+ * @param st The stream to set codec values for
+ * @return 0 if ok, or negative AVERROR code on failure
+ */
+int ff_mov_read_chnl(AVFormatContext *s, AVIOContext *pb, AVStream *st);
+
#endif /* AVFORMAT_MOV_CHAN_H */