Commit 51bbf8d3 authored by bcoudurier's avatar bcoudurier

do not write wave if not needed


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5377 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 91018355
...@@ -399,7 +399,11 @@ static int mov_write_audio_tag(ByteIOContext *pb, MOVTrack* track) ...@@ -399,7 +399,11 @@ static int mov_write_audio_tag(ByteIOContext *pb, MOVTrack* track)
put_be32(pb, 2); 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); mov_write_wave_tag(pb, track);
else if(track->enc->codec_id == CODEC_ID_AAC) else if(track->enc->codec_id == CODEC_ID_AAC)
mov_write_esds_tag(pb, track); mov_write_esds_tag(pb, track);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment