[FFmpeg-devel] [PATCH v1] avformat/mxfenc: fix warning: unused function 'klv_ber_length' [-Wunused-function]

Marton Balint cus at passwd.hu
Thu Aug 29 11:12:23 EEST 2019


On Thu, 29 Aug 2019, lance.lmwang at gmail.com wrote:

> From: Limin Wang <lance.lmwang at gmail.com>

See https://patchwork.ffmpeg.org/patch/14141/

Thanks,
Marton

>
> Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
> ---
> libavformat/mxfenc.c | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
> index 8b3d599a6f..b5d9bb5f46 100644
> --- a/libavformat/mxfenc.c
> +++ b/libavformat/mxfenc.c
> @@ -542,14 +542,6 @@ static void mxf_write_refs_count(AVIOContext *pb, int ref_count)
>     avio_wb32(pb, 16);
> }
> 
> -static int klv_ber_length(uint64_t len)
> -{
> -    if (len < 128)
> -        return 1;
> -    else
> -        return (av_log2(len) >> 3) + 2;
> -}
> -
> static int klv_encode_ber_length(AVIOContext *pb, uint64_t len)
> {
>     // Determine the best BER size
> -- 
> 2.21.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list