Mercurial > libavformat.hg
changeset 3885:4d5d454fae45 libavformat
dirac muxing support in mp4/mov
author | bcoudurier |
---|---|
date | Wed, 03 Sep 2008 19:23:24 +0000 |
parents | 6db8f3d6ef88 |
children | d3a8d137ba1f |
files | isom.c movenc.c |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/isom.c Wed Sep 03 19:18:49 2008 +0000 +++ b/isom.c Wed Sep 03 19:23:24 2008 +0000 @@ -48,6 +48,7 @@ { CODEC_ID_PNG , 0x6D }, { CODEC_ID_JPEG2000 , 0x6E }, /* 15444-1 */ { CODEC_ID_VC1 , 0xA3 }, + { CODEC_ID_DIRAC , 0xA4 }, { CODEC_ID_AC3 , 0xA5 }, { CODEC_ID_VORBIS , 0xDD }, /* non standard, gpac uses it */ { CODEC_ID_DVD_SUBTITLE, 0xE0 }, /* non standard, see unsupported-embedded-subs-2.mp4 */ @@ -155,6 +156,7 @@ { CODEC_ID_VC1, MKTAG('v', 'c', '-', '1') }, /* SMPTE RP 2025 */ { CODEC_ID_CAVS, MKTAG('a', 'v', 's', '2') }, + { CODEC_ID_DIRAC, MKTAG('d', 'r', 'a', 'c') }, { CODEC_ID_DNXHD, MKTAG('A', 'V', 'd', 'n') }, /* AVID DNxHD */ { CODEC_ID_SGI, MKTAG('s', 'g', 'i', ' ') }, /* SGI */
--- a/movenc.c Wed Sep 03 19:18:49 2008 +0000 +++ b/movenc.c Wed Sep 03 19:23:24 2008 +0000 @@ -574,6 +574,7 @@ return 0; if (track->enc->codec_id == CODEC_ID_H264) tag = MKTAG('a','v','c','1'); else if (track->enc->codec_id == CODEC_ID_AC3) tag = MKTAG('a','c','-','3'); + else if (track->enc->codec_id == CODEC_ID_DIRAC) tag = MKTAG('d','r','a','c'); else if (track->enc->codec_type == CODEC_TYPE_VIDEO) tag = MKTAG('m','p','4','v'); else if (track->enc->codec_type == CODEC_TYPE_AUDIO) tag = MKTAG('m','p','4','a'); } else if (track->mode == MODE_IPOD) {