Mercurial > libavformat.hg
changeset 2977:b5ad3169a579 libavformat
write esds atom when mpeg-4 systems tags are used
author | bcoudurier |
---|---|
date | Mon, 28 Jan 2008 13:44:27 +0000 |
parents | 44bc0517584d |
children | 8dcdecbbf7e6 |
files | movenc.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Mon Jan 28 13:19:49 2008 +0000 +++ b/movenc.c Mon Jan 28 13:44:27 2008 +0000 @@ -381,7 +381,7 @@ 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) + else if(track->tag == MKTAG('m','p','4','a')) mov_write_esds_tag(pb, track); else if(track->enc->codec_id == CODEC_ID_AMR_NB) mov_write_amr_tag(pb, track); @@ -573,7 +573,7 @@ put_be16(pb, 0x18); /* Reserved */ put_be16(pb, 0xffff); /* Reserved */ - if(track->enc->codec_id == CODEC_ID_MPEG4) + if(track->tag == MKTAG('m','p','4','v')) mov_write_esds_tag(pb, track); else if(track->enc->codec_id == CODEC_ID_H263) mov_write_d263_tag(pb);