Mercurial > libavformat.hg
changeset 3447:06ab88083127 libavformat
remove obsolete requirements, quicktime 6 is from 2002, not sure if muxing scheme still fits
author | bcoudurier |
---|---|
date | Mon, 09 Jun 2008 19:56:45 +0000 |
parents | 7d73c4a64714 |
children | 211b08cdf74d |
files | movenc.c |
diffstat | 1 files changed, 2 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Mon Jun 09 18:23:06 2008 +0000 +++ b/movenc.c Mon Jun 09 19:56:45 2008 +0000 @@ -1179,22 +1179,12 @@ static int mov_write_udta_tag(ByteIOContext *pb, MOVContext *mov, AVFormatContext *s) { - int i, req = 0; - - /* Requirements */ - for (i=0; i<mov->nb_streams; i++) { - if(mov->tracks[i].entry <= 0) continue; - if (mov->tracks[i].enc->codec_id == CODEC_ID_AAC || - mov->tracks[i].enc->codec_id == CODEC_ID_MPEG4) { - req = 1; - break; - } - } + int i; if (s->title[0] || s->author[0] || s->album[0] || s->year || s->comment[0] || s->genre[0] || s->track || (mov->mode == MODE_MOV && - ((mov->tracks[0].enc && !mov->tracks[0].enc->flags & CODEC_FLAG_BITEXACT) || req))) { + (mov->tracks[0].enc && !mov->tracks[0].enc->flags & CODEC_FLAG_BITEXACT))) { offset_t pos = url_ftell(pb); put_be32(pb, 0); /* size */ @@ -1204,10 +1194,6 @@ mov_write_meta_tag(pb, mov, s); if(mov->mode == MODE_MOV){ // the title field breaks gtkpod with mp4 and my suspicion is that stuff is not valid in mp4 - /* Requirements */ - if (req) - mov_write_string_tag(pb, "\251req", "QuickTime 6.0 or greater", 0); - mov_write_string_tag(pb, "\251nam", s->title , 0); mov_write_string_tag(pb, "\251aut", s->author , 0); mov_write_string_tag(pb, "\251alb", s->album , 0);