[FFmpeg-devel] [PATCH] avformat/movenc: Use correct channel count for AAC codec
Yeongjin Jeong
gingerbk247 at gmail.com
Wed Feb 13 21:38:29 EET 2019
---
libavformat/movenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 7794330..bb8bbdb 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1088,6 +1088,7 @@ static int mov_write_audio_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContex
} 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_AAC ||
track->par->codec_id == AV_CODEC_ID_OPUS) {
avio_wb16(pb, track->par->channels);
} else {
--
2.7.4
More information about the ffmpeg-devel
mailing list