diff options
author | James Almer <jamrial@gmail.com> | 2022-03-28 14:58:48 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-04-05 09:19:59 -0300 |
commit | 7ccc9108032aeaa21b8ad91b201ed19c88b8d239 (patch) | |
tree | 8ac10a026bab4d5633bfd5e5f7f3ee111c5682fd /libavformat/movenc.h | |
parent | feb3b44c1c4681eac096316fde7309192fcecb18 (diff) | |
download | ffmpeg-7ccc9108032aeaa21b8ad91b201ed19c88b8d239.tar.gz |
avformat/movenc: don't use mono layout when a front center label is expected
On output streams where a multichannel stream needs to be stored as one track
per channel, each track will have a channel layout describing the position of
the channel they contain. For the track with front center, the mov muxer was
using the mov layout "mono" instead of the label for the front center position.
Since our channel layout API considers front center == mono, we need to do some
heuristics. To achieve this, we make sure all audio tracks contain streams with
a single channel, and only one of them is front center. In that case, we write
the front center label instead of signaling mono layout.
Fixes the last part of ticket #2865
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/movenc.h')
-rw-r--r-- | libavformat/movenc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/movenc.h b/libavformat/movenc.h index 2ac84ed070..67d6d4fb66 100644 --- a/libavformat/movenc.h +++ b/libavformat/movenc.h @@ -107,6 +107,7 @@ typedef struct MOVTrack { int tag; ///< stsd fourcc AVStream *st; AVCodecParameters *par; + int mono_as_fc; int multichannel_as_mono; int vos_len; |