Mercurial > libavformat.hg
changeset 4528:6495e0111859 libavformat
fix rip body sid when muxing cbr
author | bcoudurier |
---|---|
date | Wed, 18 Feb 2009 01:05:06 +0000 |
parents | 3aa54e7973d7 |
children | ade95792aa16 |
files | mxfenc.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mxfenc.c Wed Feb 18 00:12:05 2009 +0000 +++ b/mxfenc.c Wed Feb 18 01:05:06 2009 +0000 @@ -1722,7 +1722,10 @@ put_buffer(pb, random_index_pack_key, 16); 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 for (i = 0; i < mxf->body_partitions_count; i++) {