Revision c3ff541b libavformat/mxfenc.c

View differences:

libavformat/mxfenc.c
1042 1042
    put_buffer(pb, index_table_segment_key, 16);
1043 1043

  
1044 1044
    if (mxf->edit_unit_byte_count) {
1045
        klv_encode_ber_length(pb, 85);
1045
        klv_encode_ber_length(pb, 80);
1046 1046
    } else {
1047 1047
        klv_encode_ber_length(pb, 85 + 12+(s->nb_streams+1)*6 +
1048 1048
                              12+mxf->edit_units_count*(11+mxf->slice_count*4));
......
1077 1077
    mxf_write_local_tag(pb, 4, 0x3F07);
1078 1078
    put_be32(pb, 1);
1079 1079

  
1080
    // real slice count - 1
1081
    mxf_write_local_tag(pb, 1, 0x3F08);
1082
    put_byte(pb, mxf->slice_count);
1083

  
1084 1080
    if (!mxf->edit_unit_byte_count) {
1081
        // real slice count - 1
1082
        mxf_write_local_tag(pb, 1, 0x3F08);
1083
        put_byte(pb, mxf->slice_count);
1084

  
1085 1085
        // delta entry array
1086 1086
        mxf_write_local_tag(pb, 8 + (s->nb_streams+1)*6, 0x3F09);
1087 1087
        put_be32(pb, s->nb_streams+1); // num of entries

Also available in: Unified diff