Mercurial > libavformat.hg
changeset 1084:9db2ed540c30 libavformat
do not write wave if not needed
author | bcoudurier |
---|---|
date | Sat, 13 May 2006 22:25:17 +0000 |
parents | 96283b259b1a |
children | 2771ca5d7b9e |
files | movenc.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Sat May 13 21:00:52 2006 +0000 +++ b/movenc.c Sat May 13 22:25:17 2006 +0000 @@ -399,7 +399,11 @@ 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);