Mercurial > libavformat.hg
changeset 397:f2f776a902c1 libavformat
* enabling DV-in-QT
* fixing a bug in movenc.c: for QT files hdrl should contain 'mhlr'
author | romansh |
---|---|
date | Fri, 26 Mar 2004 09:04:06 +0000 |
parents | 96f8086bc2ba |
children | 0d92246d3644 |
files | movenc.c |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Wed Mar 24 23:32:48 2004 +0000 +++ b/movenc.c Fri Mar 26 09:04:06 2004 +0000 @@ -255,6 +255,10 @@ put_tag(pb, "mp4a"); else if(track->enc->codec_id == CODEC_ID_AMR_NB) put_tag(pb, "samr"); + else if(track->enc->codec_id == CODEC_ID_PCM_S16BE) + put_tag(pb, "twos"); + else if(track->enc->codec_id == CODEC_ID_PCM_S16LE) + put_tag(pb, "sowt"); else put_tag(pb, " "); @@ -432,6 +436,8 @@ put_tag(pb, "mp4v"); else if(track->enc->codec_id == CODEC_ID_H263) put_tag(pb, "s263"); + else if(track->enc->codec_id == CODEC_ID_DVVIDEO) + put_tag(pb, "dvc "); else put_tag(pb, " "); /* Unknown tag */ @@ -577,7 +583,10 @@ put_be32(pb, 0); /* size */ put_tag(pb, "hdlr"); put_be32(pb, 0); /* Version & flags */ - put_be32(pb, 0); /* reserved */ + if (track->mode == MODE_MOV) + put_tag(pb, "mhlr"); /* handler */ + else + put_be32(pb, 0); /* reserved */ if(track->enc->codec_type == CODEC_TYPE_VIDEO) put_tag(pb, "vide"); /* handler type */ else