Browse Source

fix rip body sid when muxing cbr

Originally committed as revision 17414 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Baptiste Coudurier 16 years ago
parent
commit
6c53bf63c6
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      libavformat/mxfenc.c

+ 4
- 1
libavformat/mxfenc.c View File

@@ -1722,7 +1722,10 @@ static void mxf_write_random_index_pack(AVFormatContext *s)
put_buffer(pb, random_index_pack_key, 16); put_buffer(pb, random_index_pack_key, 16);
klv_encode_ber_length(pb, 28 + 12*mxf->body_partitions_count); klv_encode_ber_length(pb, 28 + 12*mxf->body_partitions_count);


put_be32(pb, 0); // BodySID of header partition
if (mxf->edit_unit_byte_count)
put_be32(pb, 1); // BodySID of header partition
else
put_be32(pb, 0); // BodySID of header partition
put_be64(pb, 0); // offset of header partition put_be64(pb, 0); // offset of header partition


for (i = 0; i < mxf->body_partitions_count; i++) { for (i = 0; i < mxf->body_partitions_count; i++) {


Loading…
Cancel
Save