[FFmpeg-devel] [PATCH] avformat/mxfenc: Remove unused function

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Tue Jul 30 10:12:29 EEST 2019


klv_ber_length is unused since 9e24b98b.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
 libavformat/mxfenc.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 2e54320cf0..0cb0617919 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