]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mov_chan.h
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavformat / mov_chan.h
index abb6916144ac5fc4a4119bbadf19d750f9db095d..0897cd92dda7c4e7100fd64b1d17c475b5df2824 100644 (file)
@@ -29,6 +29,7 @@
 #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.
@@ -60,4 +53,14 @@ uint32_t ff_mov_get_channel_layout_tag(enum CodecID codec_id,
                                        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 */