mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-23 23:36:57 +00:00
avformat/mxfenc: fix warning: unused function 'klv_ber_length' [-Wunused-function]
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
022f50d3fe
commit
787c56b9e9
@ -553,15 +553,14 @@ static int klv_ber_length(uint64_t len)
|
||||
static int klv_encode_ber_length(AVIOContext *pb, uint64_t len)
|
||||
{
|
||||
// Determine the best BER size
|
||||
int size;
|
||||
if (len < 128) {
|
||||
int size = klv_ber_length(len);
|
||||
if (size == 1) {
|
||||
//short form
|
||||
avio_w8(pb, len);
|
||||
return 1;
|
||||
}
|
||||
|
||||
size = (av_log2(len) >> 3) + 1;
|
||||
|
||||
size --;
|
||||
// long form
|
||||
avio_w8(pb, 0x80 + size);
|
||||
while(size) {
|
||||
|
Loading…
Reference in New Issue
Block a user