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

lance.lmwang at gmail.com lance.lmwang at gmail.com
Thu Aug 29 10:21:35 EEST 2019


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

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



More information about the ffmpeg-devel mailing list