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

Tomas Härdin tjoppen at acc.umu.se
Fri Jul 19 18:48:54 EEST 2019


tor 2019-07-18 klockan 11:39 -0700 skrev Baptiste Coudurier:
> ---
>  libavformat/mxfenc.c | 3 +--
>  1 file changed, 1 insertion(+), 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);
>      }
>  

Is there a reason why we don't pick a single BER length coding for the
entire muxer?

/Tomas



More information about the ffmpeg-devel mailing list