# HG changeset patch # User romansh # Date 1080291846 0 # Node ID f2f776a902c1f4a3a9cce2e5df52453f26746e11 # Parent 96f8086bc2ba9b9c19b1afb3808b1af5bffdb70c * enabling DV-in-QT * fixing a bug in movenc.c: for QT files hdrl should contain 'mhlr' diff -r 96f8086bc2ba -r f2f776a902c1 movenc.c --- 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