aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2019-07-18 10:35:00 -0700
committerJames Almer <jamrial@gmail.com>2021-10-19 19:01:36 -0300
commit3c4e1a56e352d406dc5ab9525db016c3b8e11c22 (patch)
tree1ecc7650a7fdecb77023b4be1927d0ba18dd4771
parenta5d2008e2a2360d351798e9abe883d603e231442 (diff)
downloadffmpeg-3c4e1a56e352d406dc5ab9525db016c3b8e11c22.tar.gz
avformat/mxfenc: fix index byte count in partition header
-rw-r--r--libavformat/mxfenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 3549b4137d..a94adecffe 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -1857,8 +1857,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);
}