Revision 5997ed78 libavformat/movenc.c

View differences:

libavformat/movenc.c
605 605

  
606 606
    put_be16(pb, 0); /* Codec stream version */
607 607
    put_be16(pb, 0); /* Codec stream revision (=0) */
608
    if (track->mode == MODE_MOV) {
608 609
    put_tag(pb, "FFMP"); /* Vendor */
609 610
    if(track->enc->codec_id == CODEC_ID_RAWVIDEO) {
610 611
        put_be32(pb, 0); /* Temporal Quality */
......
613 614
        put_be32(pb, 0x200); /* Temporal Quality = normal */
614 615
        put_be32(pb, 0x200); /* Spatial Quality = normal */
615 616
    }
617
    } else {
618
        put_be32(pb, 0); /* Reserved */
619
        put_be32(pb, 0); /* Reserved */
620
        put_be32(pb, 0); /* Reserved */
621
    }
616 622
    put_be16(pb, track->enc->width); /* Video width */
617 623
    put_be16(pb, track->enc->height); /* Video height */
618 624
    put_be32(pb, 0x00480000); /* Horizontal resolution 72dpi */
......
621 627
    put_be16(pb, 1); /* Frame count (= 1) */
622 628

  
623 629
    memset(compressor_name,0,32);
624
    if (track->enc->codec && track->enc->codec->name)
630
    /* FIXME not sure, ISO 14496-1 draft where it shall be set to 0 */
631
    if (track->mode == MODE_MOV && track->enc->codec && track->enc->codec->name)
625 632
        strncpy(compressor_name,track->enc->codec->name,31);
626 633
    put_byte(pb, strlen(compressor_name));
627 634
    put_buffer(pb, compressor_name, 31);

Also available in: Unified diff