aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-05-13 22:25:17 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-05-13 22:25:17 +0000
commit6dd19fff4d9d8e7ed48a9c973e5413b39f71ed7b (patch)
treedb7a5ed09c66b1c95d66a2b34e64c93ffb044693 /libavformat/movenc.c
parent3a72cbd9f0b531d3353f7b4c9f785dffe1a18ae4 (diff)
downloadffmpeg-6dd19fff4d9d8e7ed48a9c973e5413b39f71ed7b.tar.gz
do not write wave if not needed
Originally committed as revision 5377 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index cb9e3153f3..350245549c 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -399,7 +399,11 @@ static int mov_write_audio_tag(ByteIOContext *pb, MOVTrack* track)
put_be32(pb, 2);
}
- if(track->mode == MODE_MOV)
+ if(track->mode == MODE_MOV &&
+ (track->enc->codec_id == CODEC_ID_AAC ||
+ track->enc->codec_id == CODEC_ID_AMR_NB ||
+ track->enc->codec_id == CODEC_ID_PCM_S24LE ||
+ track->enc->codec_id == CODEC_ID_PCM_S32LE))
mov_write_wave_tag(pb, track);
else if(track->enc->codec_id == CODEC_ID_AAC)
mov_write_esds_tag(pb, track);