Revision 26f86eaf libavformat/movenc.c

View differences:

libavformat/movenc.c
1316 1316
        put_tag(pb, "3g2a");
1317 1317
    else if ( mov->mode == MODE_PSP )
1318 1318
        put_tag(pb, "MSNV");
1319
    else
1319
    else if ( mov->mode == MODE_MP4 )
1320 1320
        put_tag(pb, "isom");
1321
    else
1322
        put_tag(pb, "qt  ");
1321 1323

  
1322 1324
    put_be32(pb, 0x200 );
1323 1325

  
......
1327 1329
        put_tag(pb, "3g2a");
1328 1330
    else if ( mov->mode == MODE_PSP )
1329 1331
        put_tag(pb, "MSNV");
1330
    else
1332
    else if ( mov->mode == MODE_MP4 )
1331 1333
        put_tag(pb, "mp41");
1334
    else
1335
        put_tag(pb, "qt  ");
1332 1336
}
1333 1337

  
1334 1338
static void mov_write_uuidprof_tag(ByteIOContext *pb, AVFormatContext *s)
......
1398 1402
        else if (!strcmp("mov", s->oformat->name)) mov->mode = MODE_MOV;
1399 1403
        else if (!strcmp("psp", s->oformat->name)) mov->mode = MODE_PSP;
1400 1404

  
1401
        if ( mov->mode == MODE_3GP || mov->mode == MODE_3G2 ||
1402
             mov->mode == MODE_MP4 || mov->mode == MODE_PSP )
1403
            mov_write_ftyp_tag(pb,s);
1405
        mov_write_ftyp_tag(pb,s);
1404 1406
        if ( mov->mode == MODE_PSP ) {
1405 1407
            if ( s->nb_streams != 2 ) {
1406 1408
                av_log(s, AV_LOG_ERROR, "PSP mode need one video and one audio stream\n");

Also available in: Unified diff