]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mov_chan.h
lavc decoders: properly initialize AVFrame.
[ffmpeg] / libavformat / mov_chan.h
index 972334010292657a1c5618c2cc56498ae2406351..3fae93961ea3ea4101c6e0796dadc8a6a61b4800 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.
@@ -48,8 +49,20 @@ uint64_t ff_mov_get_channel_layout(uint32_t tag, uint32_t bitmap);
  * @param[out] bitmap          channel bitmap
  * @return                     channel layout tag
  */
-uint32_t ff_mov_get_channel_layout_tag(enum CodecID codec_id,
+uint32_t ff_mov_get_channel_layout_tag(enum AVCodecID codec_id,
                                        uint64_t channel_layout,
                                        uint32_t *bitmap);
 
+/**
+ * Read 'chan' tag from the input stream.
+ *
+ * @param s     AVFormatContext
+ * @param pb    AVIOContext
+ * @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, AVIOContext *pb, AVStream *st,
+                     int64_t size);
+
 #endif /* AVFORMAT_MOV_CHAN_H */