[FFmpeg-devel] avformat/movenc: Use correct channel count for AAC codec

Submitted by Yeongjin Jeong on Feb. 13, 2019, 7:38 p.m.

Details

Message ID 1550086709-21380-1-git-send-email-yeongjin.jeong@navercorp.com
State New
Headers show

Commit Message

Yeongjin Jeong Feb. 13, 2019, 7:38 p.m.
---
 libavformat/movenc.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

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 {