summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-12-14 12:10:25 +0100
committerPaul B Mahol <onemda@gmail.com>2018-12-14 12:11:57 +0100
commitd9a91d58a17ff485a02cd63581ba6f528315c767 (patch)
tree2c4cde15e9ddc873fe93d9bac76de7f546b9cff4 /libavformat
parent5e6b93bb4dc46a8a2c9e18e58810bdb6a64a1790 (diff)
downloadffmpeg-streaming-d9a91d58a17ff485a02cd63581ba6f528315c767.zip
ffmpeg-streaming-d9a91d58a17ff485a02cd63581ba6f528315c767.tar.gz
avformat/movenc: treat ALAC same as FLAC and write correct info
Fixes #7291.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/movenc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 28cf8b7..adaff4c 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1079,12 +1079,14 @@ static int mov_write_audio_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContex
avio_wb16(pb, track->audio_vbr ? -2 : 0); /* compression ID */
} else { /* reserved for mp4/3gp */
if (track->par->codec_id == AV_CODEC_ID_FLAC ||
+ track->par->codec_id == AV_CODEC_ID_ALAC ||
track->par->codec_id == AV_CODEC_ID_OPUS) {
avio_wb16(pb, track->par->channels);
} else {
avio_wb16(pb, 2);
}
- if (track->par->codec_id == AV_CODEC_ID_FLAC) {
+ if (track->par->codec_id == AV_CODEC_ID_FLAC ||
+ track->par->codec_id == AV_CODEC_ID_ALAC) {
avio_wb16(pb, track->par->bits_per_raw_sample);
} else {
avio_wb16(pb, 16);
OpenPOWER on IntegriCloud