diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-18 01:05:06 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-18 01:05:06 +0000 |
commit | 6c53bf63c67fc1b91465cb483833b81ec052891c (patch) | |
tree | d9b415b9ec77edfdd25e20b5dd95c071e97fbd91 /libavformat/mxfenc.c | |
parent | cf6065ca6bdba3929d952da36bbd1410a2e112c0 (diff) | |
download | ffmpeg-6c53bf63c67fc1b91465cb483833b81ec052891c.tar.gz |
fix rip body sid when muxing cbr
Originally committed as revision 17414 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mxfenc.c')
-rw-r--r-- | libavformat/mxfenc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 1514726b99..1913ec9a65 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1722,7 +1722,10 @@ static void mxf_write_random_index_pack(AVFormatContext *s) 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++) { |