]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/sbc: Fix non static function prefix
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 19 Apr 2018 21:32:07 +0000 (23:32 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 19 Apr 2018 21:32:07 +0000 (23:32 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/sbc.c
libavcodec/sbc.h
libavcodec/sbcdec.c
libavcodec/sbcenc.c

index f7dba79f4fe90295550e742f57559f7f94c00e2f..b43b66e3f5192104d8414ed54e2bb2478cedfd01 100644 (file)
@@ -52,7 +52,7 @@ static const int sbc_offset8[4][8] = {
 /*
  * Calculates the CRC-8 of the first len bits in data
  */
-uint8_t sbc_crc8(const AVCRC *ctx, const uint8_t *data, size_t len)
+uint8_t ff_sbc_crc8(const AVCRC *ctx, const uint8_t *data, size_t len)
 {
     size_t byte_length = len >> 3;
     int bit_length = len & 7;
index 405fadc3a62059b8ef4465d14ce79163514cb70c..de9c8d9aed352b951678027b9cd15ba17c89105f 100644 (file)
@@ -112,7 +112,7 @@ struct sbc_frame {
     const AVCRC *crc_ctx;
 };
 
-uint8_t sbc_crc8(const AVCRC *crc_ctx, const uint8_t *data, size_t len);
+uint8_t ff_sbc_crc8(const AVCRC *crc_ctx, const uint8_t *data, size_t len);
 void ff_sbc_calculate_bits(const struct sbc_frame *frame, int (*bits)[8]);
 
 #endif /* AVCODEC_SBC_H */
index be703382ff5d374f9ef86f9761338f5c298bf4a1..546b38c1068602af7928a65bccb1f81bfb56d5e5 100644 (file)
@@ -147,7 +147,7 @@ static int sbc_unpack_frame(const uint8_t *data, struct sbc_frame *frame,
         }
     }
 
-    if (data[3] != sbc_crc8(frame->crc_ctx, crc_header, crc_pos))
+    if (data[3] != ff_sbc_crc8(frame->crc_ctx, crc_header, crc_pos))
         return -3;
 
     ff_sbc_calculate_bits(frame, bits);
index a0064c0e8c722bf74000ea0108883220a1e9e864..e2929e22ac52e91fc42458cbf2fd7df3a455ed1a 100644 (file)
@@ -156,7 +156,7 @@ static size_t sbc_pack_frame(AVPacket *avpkt, struct sbc_frame *frame,
     if (crc_pos % 8)
         crc_header[crc_pos >> 3] <<= 8 - (crc_pos % 8);
 
-    avpkt->data[3] = sbc_crc8(frame->crc_ctx, crc_header, crc_pos);
+    avpkt->data[3] = ff_sbc_crc8(frame->crc_ctx, crc_header, crc_pos);
 
     ff_sbc_calculate_bits(frame, bits);