#include <stdint.h>
#include "libavcodec/avcodec.h"
+#include "avformat.h"
/**
* Get the channel layout for the specified channel layout tag.
*/
uint64_t ff_mov_get_channel_layout(uint32_t tag, uint32_t bitmap);
-/**
- * Get the channel layout for the specified channel layout tag.
- *
- * @param[in] tag channel label
- * @return channel layout mask fragment
- */
-uint32_t ff_mov_get_channel_label(uint32_t label);
-
/**
* Get the channel layout tag for the specified codec id and channel layout.
* If the layout tag was not found, use a channel bitmap if possible.
uint64_t channel_layout,
uint32_t *bitmap);
+/**
+ * Read 'chan' tag from the input stream.
+ *
+ * @param s AVFormatContext
+ * @param st The stream to set codec values for
+ * @param size Remaining size in the 'chan' tag
+ * @return 0 if ok, or negative AVERROR code on failure
+ */
+int ff_mov_read_chan(AVFormatContext *s, AVStream *st, int64_t size);
+
#endif /* AVFORMAT_MOV_CHAN_H */