diff mbox series

[FFmpeg-devel,1/2] lavc/tak: make ff_tak_parse_streaminfo static

Message ID 20230504184921.12749-1-anton@khirnov.net
State Accepted
Commit ecdf1ac267b1540c246666add646a6cc082a0828
Headers show
Series [FFmpeg-devel,1/2] lavc/tak: make ff_tak_parse_streaminfo static | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov May 4, 2023, 6:49 p.m. UTC
It is not used outside of tak.c
---
 libavcodec/tak.c | 6 +++---
 libavcodec/tak.h | 2 --
 2 files changed, 3 insertions(+), 5 deletions(-)

Comments

Paul B Mahol May 4, 2023, 7:01 p.m. UTC | #1
approved
diff mbox series

Patch

diff --git a/libavcodec/tak.c b/libavcodec/tak.c
index f26574c968..d1604dc9d2 100644
--- a/libavcodec/tak.c
+++ b/libavcodec/tak.c
@@ -92,7 +92,7 @@  int ff_tak_check_crc(const uint8_t *buf, unsigned int buf_size)
     return 0;
 }
 
-void ff_tak_parse_streaminfo(TAKStreamInfo *s, GetBitContext *gb)
+static void tak_parse_streaminfo(TAKStreamInfo *s, GetBitContext *gb)
 {
     uint64_t channel_mask = 0;
     int frame_type, i;
@@ -135,7 +135,7 @@  int avpriv_tak_parse_streaminfo(TAKStreamInfo *s, const uint8_t *buf, int size)
     if (ret < 0)
         return AVERROR_INVALIDDATA;
 
-    ff_tak_parse_streaminfo(s, &gb);
+    tak_parse_streaminfo(s, &gb);
 
     return 0;
 }
@@ -159,7 +159,7 @@  int ff_tak_decode_frame_header(AVCodecContext *avctx, GetBitContext *gb,
     }
 
     if (ti->flags & TAK_FRAME_FLAG_HAS_INFO) {
-        ff_tak_parse_streaminfo(ti, gb);
+        tak_parse_streaminfo(ti, gb);
 
         if (get_bits(gb, 6))
             skip_bits(gb, 25);
diff --git a/libavcodec/tak.h b/libavcodec/tak.h
index 6069118971..5e43598de8 100644
--- a/libavcodec/tak.h
+++ b/libavcodec/tak.h
@@ -149,8 +149,6 @@  int ff_tak_check_crc(const uint8_t *buf, unsigned int buf_size);
  */
 int avpriv_tak_parse_streaminfo(TAKStreamInfo *s, const uint8_t *buf, int size);
 
-void ff_tak_parse_streaminfo(TAKStreamInfo *s, GetBitContext *gb);
-
 /**
  * Validate and decode a frame header.
  * @param      avctx             AVCodecContext to use as av_log() context