lavc/tak: make ff_tak_parse_streaminfo static

It is not used outside of tak.c
pull/389/head
Anton Khirnov 2 years ago
parent 6febb2a5ff
commit ecdf1ac267
  1. 6
      libavcodec/tak.c
  2. 2
      libavcodec/tak.h

@ -92,7 +92,7 @@ int ff_tak_check_crc(const uint8_t *buf, unsigned int buf_size)
return 0; 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; uint64_t channel_mask = 0;
int frame_type, i; int frame_type, i;
@ -135,7 +135,7 @@ int avpriv_tak_parse_streaminfo(TAKStreamInfo *s, const uint8_t *buf, int size)
if (ret < 0) if (ret < 0)
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
ff_tak_parse_streaminfo(s, &gb); tak_parse_streaminfo(s, &gb);
return 0; return 0;
} }
@ -159,7 +159,7 @@ int ff_tak_decode_frame_header(AVCodecContext *avctx, GetBitContext *gb,
} }
if (ti->flags & TAK_FRAME_FLAG_HAS_INFO) { if (ti->flags & TAK_FRAME_FLAG_HAS_INFO) {
ff_tak_parse_streaminfo(ti, gb); tak_parse_streaminfo(ti, gb);
if (get_bits(gb, 6)) if (get_bits(gb, 6))
skip_bits(gb, 25); skip_bits(gb, 25);

@ -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); 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. * Validate and decode a frame header.
* @param avctx AVCodecContext to use as av_log() context * @param avctx AVCodecContext to use as av_log() context

Loading…
Cancel
Save