aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2012-05-30 17:51:12 -0700
committerAlex Converse <alex.converse@gmail.com>2012-06-04 10:08:31 -0700
commit41e9682af22336bd08a5906629731c0c32aa00c6 (patch)
treed2ae289fbb697d8614c798396041c901d3f7bce5 /libavformat
parent84e430dd7b75215757554f2c4a47a212ea51d85f (diff)
downloadffmpeg-41e9682af22336bd08a5906629731c0c32aa00c6.tar.gz
movenc: Write chan atom for all audio tracks in mov mode movies.
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 fa6e95771e..bf888bc3be 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -390,7 +390,6 @@ static int mov_write_wave_tag(AVIOContext *pb, MOVTrack *track)
} else if (track->enc->codec_id == CODEC_ID_AMR_NB) {
mov_write_amr_tag(pb, track);
} else if (track->enc->codec_id == CODEC_ID_AC3) {
- mov_write_chan_tag(pb, track);
mov_write_ac3_tag(pb, track);
} else if (track->enc->codec_id == CODEC_ID_ALAC) {
mov_write_extradata_tag(pb, track);
@@ -638,6 +637,9 @@ static int mov_write_audio_tag(AVIOContext *pb, MOVTrack *track)
else if (track->vos_len > 0)
mov_write_glbl_tag(pb, track);
+ if (track->mode == MODE_MOV && track->enc->codec_type == AVMEDIA_TYPE_AUDIO)
+ mov_write_chan_tag(pb, track);
+
return update_size(pb, pos);
}