diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2019-07-18 20:35:00 +0300 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2019-07-23 00:27:11 +0300 |
commit | c60e1d6be5a3ad081e2e001379b8171aa738e032 (patch) | |
tree | 19131a697dce1db2f4082792ea14e14f2c8d47ae | |
parent | 7c4064d9dfe30adc525c2dadcdbb211b10e3a4a5 (diff) |
avformat/mxfenc: fix index byte count in partition header
(cherry picked from commit 9e24b98b15cbec1e0212d909ad29c746e1d1738b)
-rw-r--r-- | libavformat/mxfenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index b677f6af8e..2e54320cf0 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1944,8 +1944,7 @@ static int mxf_write_partition(AVFormatContext *s, int bodysid, index_byte_count = 80; if (index_byte_count) { - // add encoded ber length - index_byte_count += 16 + klv_ber_length(index_byte_count); + index_byte_count += 16 + 4; // add encoded ber4 length index_byte_count += klv_fill_size(index_byte_count); } |