Mercurial > libavformat.hg
changeset 1050:ece3b7eecba2 libavformat
little h.264 related hunk from diff between cvs and mobile hackerz
author | michael |
---|---|
date | Tue, 04 Apr 2006 17:44:59 +0000 |
parents | 23d44137105f |
children | eda6e2c47b6f |
files | movenc.c |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Tue Apr 04 12:58:56 2006 +0000 +++ b/movenc.c Tue Apr 04 17:44:59 2006 +0000 @@ -1546,8 +1546,15 @@ put_tag(pb, "VPRF"); /* video */ put_be32(pb, 0x0 ); put_be32(pb, 0x1 ); /* TrackID */ - put_tag(pb, "mp4v"); - put_be32(pb, 0x103 ); + if (VideoCodec->codec_id == CODEC_ID_H264) { + put_tag(pb, "avc1"); + put_be16(pb, 0x014D ); + put_be16(pb, 0x0015 ); + } else { + put_tag(pb, "mp4v"); + put_be16(pb, 0x0000 ); + put_be16(pb, 0x0103 ); + } put_be32(pb, 0x0 ); put_be32(pb, video_kbitrate); put_be32(pb, video_kbitrate);