summaryrefslogtreecommitdiff
path: root/libavformat/mov_chan.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-03-28 11:24:27 -0300
committerJames Almer <jamrial@gmail.com>2022-04-05 09:19:59 -0300
commitc2c5f3484399281e7eb74f5fdcc1f2eab8b9f62d (patch)
tree5aecf369d5ad90cabb1df3ea2fa36589082dac02 /libavformat/mov_chan.h
parentb4373bc4226426e4c2498e0c914520806764776e (diff)
downloadffmpeg-c2c5f3484399281e7eb74f5fdcc1f2eab8b9f62d.tar.gz
avformat/movenc: write channel descriptions when a known layout or a bitmap can't be used
Fixes part of ticket #2865 Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/mov_chan.h')
-rw-r--r--libavformat/mov_chan.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/libavformat/mov_chan.h b/libavformat/mov_chan.h
index 9514dfa405..2815f15f07 100644
--- a/libavformat/mov_chan.h
+++ b/libavformat/mov_chan.h
@@ -30,6 +30,7 @@
#include "libavutil/channel_layout.h"
#include "libavcodec/codec_id.h"
+#include "libavcodec/codec_par.h"
#include "avformat.h"
/**
@@ -41,9 +42,10 @@
* @param[out] bitmap channel bitmap
* @return channel layout tag
*/
-uint32_t ff_mov_get_channel_layout_tag(enum AVCodecID codec_id,
- const AVChannelLayout *ch_layout,
- uint32_t *bitmap);
+int ff_mov_get_channel_layout_tag(const AVCodecParameters *par,
+ uint32_t *layout,
+ uint32_t *bitmap,
+ uint32_t **pchannel_desc);
/**
* Read 'chan' tag from the input stream.