Mercurial > libavformat.hg
changeset 4699:59ee17ee14fa libavformat
write correct atoms based on tag and not format, fixes subs stream copy
author | bcoudurier |
---|---|
date | Wed, 11 Mar 2009 08:01:39 +0000 |
parents | 3c93138ca17b |
children | 7042140487b7 |
files | movenc.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Wed Mar 11 07:59:38 2009 +0000 +++ b/movenc.c Wed Mar 11 08:01:39 2009 +0000 @@ -922,7 +922,7 @@ hdlr_type = "soun"; descr = "SoundHandler"; } else if (track->enc->codec_type == CODEC_TYPE_SUBTITLE) { - if (track->mode == MODE_IPOD) hdlr_type = "sbtl"; + if (track->tag == MKTAG('t','x','3','g')) hdlr_type = "sbtl"; else hdlr_type = "text"; descr = "SubtitleHandler"; } @@ -951,7 +951,7 @@ else if (track->enc->codec_type == CODEC_TYPE_AUDIO) mov_write_smhd_tag(pb); else if (track->enc->codec_type == CODEC_TYPE_SUBTITLE) { - if (track->mode == MODE_MOV) mov_write_gmhd_tag(pb); + if (track->tag == MKTAG('t','e','x','t')) mov_write_gmhd_tag(pb); else mov_write_nmhd_tag(pb); } if (track->mode == MODE_MOV) /* FIXME: Why do it for MODE_MOV only ? */