1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00

avformat/mxfenc: fix index byte count in partition header

This commit is contained in:
Baptiste Coudurier 2019-07-18 10:35:00 -07:00 committed by James Almer
parent a5d2008e2a
commit 3c4e1a56e3

View File

@ -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);
}