[FFmpeg-cvslog] avformat/mxfenc: fix index byte count in partition header

Baptiste Coudurier git at videolan.org
Wed Oct 20 01:02:12 EEST 2021


ffmpeg | branch: release/4.1 | Baptiste Coudurier <baptiste.coudurier at gmail.com> | Thu Jul 18 10:35:00 2019 -0700| [3c4e1a56e352d406dc5ab9525db016c3b8e11c22] | committer: James Almer

avformat/mxfenc: fix index byte count in partition header

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3c4e1a56e352d406dc5ab9525db016c3b8e11c22
---

 libavformat/mxfenc.c | 3 +--
 1 file changed, 1 insertion(+), 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);
     }
 



More information about the ffmpeg-cvslog mailing list