Revision 00996920 libavformat/movenc.c

View differences:

libavformat/movenc.c
1229 1229
    /* iTunes meta data */
1230 1230
    mov_write_meta_tag(pb, mov, s);
1231 1231

  
1232
  if(mov->mode == MODE_MOV){ // the title field breaks gtkpod with mp4 and my suspicion is that stuff is not valid in mp4
1233
    /* Requirements */
1234
    for (i=0; i<mov->nb_streams; i++) {
1235
        if(mov->tracks[i].entry <= 0) continue;
1236
        if (mov->tracks[i].enc->codec_id == CODEC_ID_AAC ||
1237
            mov->tracks[i].enc->codec_id == CODEC_ID_MPEG4) {
1238
            mov_write_string_tag(pb, "\251req", "QuickTime 6.0 or greater", 0);
1239
            break;
1232
    if(mov->mode == MODE_MOV){ // the title field breaks gtkpod with mp4 and my suspicion is that stuff is not valid in mp4
1233
        /* Requirements */
1234
        for (i=0; i<mov->nb_streams; i++) {
1235
            if(mov->tracks[i].entry <= 0) continue;
1236
            if (mov->tracks[i].enc->codec_id == CODEC_ID_AAC ||
1237
                mov->tracks[i].enc->codec_id == CODEC_ID_MPEG4) {
1238
                mov_write_string_tag(pb, "\251req", "QuickTime 6.0 or greater", 0);
1239
                break;
1240
            }
1240 1241
        }
1241
    }
1242 1242

  
1243
    mov_write_string_tag(pb, "\251nam", s->title         , 0);
1244
    mov_write_string_tag(pb, "\251aut", s->author        , 0);
1245
    mov_write_string_tag(pb, "\251alb", s->album         , 0);
1246
    mov_write_day_tag(pb, s->year, 0);
1247
    if(mov->tracks[0].enc && !(mov->tracks[0].enc->flags & CODEC_FLAG_BITEXACT))
1248
        mov_write_string_tag(pb, "\251enc", LIBAVFORMAT_IDENT, 0);
1249
    mov_write_string_tag(pb, "\251des", s->comment       , 0);
1250
    mov_write_string_tag(pb, "\251gen", s->genre         , 0);
1251
  }
1243
        mov_write_string_tag(pb, "\251nam", s->title         , 0);
1244
        mov_write_string_tag(pb, "\251aut", s->author        , 0);
1245
        mov_write_string_tag(pb, "\251alb", s->album         , 0);
1246
        mov_write_day_tag(pb, s->year, 0);
1247
        if(mov->tracks[0].enc && !(mov->tracks[0].enc->flags & CODEC_FLAG_BITEXACT))
1248
            mov_write_string_tag(pb, "\251enc", LIBAVFORMAT_IDENT, 0);
1249
        mov_write_string_tag(pb, "\251des", s->comment       , 0);
1250
        mov_write_string_tag(pb, "\251gen", s->genre         , 0);
1251
    }
1252 1252

  
1253 1253
    return updateSize(pb, pos);
1254 1254
}

Also available in: Unified diff