Commit b63ba850 authored by Baptiste Coudurier's avatar Baptiste Coudurier

remove obsolete requirements, quicktime 6 is from 2002, not sure if muxing scheme still fits

Originally committed as revision 13732 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 0724373d
...@@ -1179,22 +1179,12 @@ static int mov_write_meta_tag(ByteIOContext *pb, MOVContext *mov, ...@@ -1179,22 +1179,12 @@ static int mov_write_meta_tag(ByteIOContext *pb, MOVContext *mov,
static int mov_write_udta_tag(ByteIOContext *pb, MOVContext *mov, static int mov_write_udta_tag(ByteIOContext *pb, MOVContext *mov,
AVFormatContext *s) AVFormatContext *s)
{ {
int i, req = 0; int i;
/* 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;
}
}
if (s->title[0] || s->author[0] || s->album[0] || s->year || if (s->title[0] || s->author[0] || s->album[0] || s->year ||
s->comment[0] || s->genre[0] || s->track || s->comment[0] || s->genre[0] || s->track ||
(mov->mode == MODE_MOV && (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); offset_t pos = url_ftell(pb);
put_be32(pb, 0); /* size */ put_be32(pb, 0); /* size */
...@@ -1204,10 +1194,6 @@ static int mov_write_udta_tag(ByteIOContext *pb, MOVContext *mov, ...@@ -1204,10 +1194,6 @@ static int mov_write_udta_tag(ByteIOContext *pb, MOVContext *mov,
mov_write_meta_tag(pb, mov, s); 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 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, "\251nam", s->title , 0);
mov_write_string_tag(pb, "\251aut", s->author , 0); mov_write_string_tag(pb, "\251aut", s->author , 0);
mov_write_string_tag(pb, "\251alb", s->album , 0); mov_write_string_tag(pb, "\251alb", s->album , 0);
......
...@@ -21,8 +21,8 @@ bbdd9a4904eceb530b1a9ae02c48d76f *./tests/data/b-libav.ffm ...@@ -21,8 +21,8 @@ bbdd9a4904eceb530b1a9ae02c48d76f *./tests/data/b-libav.ffm
f8ad5bd78f4d012a8ce9570aa395ac54 *./tests/data/b-libav.flv f8ad5bd78f4d012a8ce9570aa395ac54 *./tests/data/b-libav.flv
335833 ./tests/data/b-libav.flv 335833 ./tests/data/b-libav.flv
./tests/data/b-libav.flv CRC=0xe14e8847 ./tests/data/b-libav.flv CRC=0xe14e8847
16518706f425cb537362bfc1c58b8de5 *./tests/data/b-libav.mov af78858062599fcbba049e4a02588a15 *./tests/data/b-libav.mov
366923 ./tests/data/b-libav.mov 366879 ./tests/data/b-libav.mov
./tests/data/b-libav.mov CRC=0x45079dca ./tests/data/b-libav.mov CRC=0x45079dca
7820fa85ab86c62028d8dbda94589573 *./tests/data/b-libav.dv 7820fa85ab86c62028d8dbda94589573 *./tests/data/b-libav.dv
3600000 ./tests/data/b-libav.dv 3600000 ./tests/data/b-libav.dv
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment