diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-18 02:13:59 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-18 02:13:59 +0000 |
commit | c3ff541baa7dadf27beb21f0caca79efe0e18a70 (patch) | |
tree | 522d84f3f99ce0a78cd5f1c2293c04b7ab85c08c /libavformat/mxfenc.c | |
parent | 8ab94b524b363870bf5634b8c3b72c489d84ef0a (diff) | |
download | ffmpeg-c3ff541baa7dadf27beb21f0caca79efe0e18a70.tar.gz |
do not write slice count when muxing cbr
Originally committed as revision 17417 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mxfenc.c')
-rw-r--r-- | libavformat/mxfenc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 9d5eb3c642..48dae40473 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1042,7 +1042,7 @@ static void mxf_write_index_table_segment(AVFormatContext *s) put_buffer(pb, index_table_segment_key, 16); if (mxf->edit_unit_byte_count) { - klv_encode_ber_length(pb, 85); + klv_encode_ber_length(pb, 80); } else { klv_encode_ber_length(pb, 85 + 12+(s->nb_streams+1)*6 + 12+mxf->edit_units_count*(11+mxf->slice_count*4)); @@ -1077,11 +1077,11 @@ static void mxf_write_index_table_segment(AVFormatContext *s) mxf_write_local_tag(pb, 4, 0x3F07); put_be32(pb, 1); - // real slice count - 1 - mxf_write_local_tag(pb, 1, 0x3F08); - put_byte(pb, mxf->slice_count); - if (!mxf->edit_unit_byte_count) { + // real slice count - 1 + mxf_write_local_tag(pb, 1, 0x3F08); + put_byte(pb, mxf->slice_count); + // delta entry array mxf_write_local_tag(pb, 8 + (s->nb_streams+1)*6, 0x3F09); put_be32(pb, s->nb_streams+1); // num of entries |