avcodec/sbc: Fix non static function prefix
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
		
							parent
							
								
									f8b17fe332
								
							
						
					
					
						commit
						9f1b99e7d0
					
				| @ -52,7 +52,7 @@ static const int sbc_offset8[4][8] = { | |||||||
| /*
 | /*
 | ||||||
|  * Calculates the CRC-8 of the first len bits in data |  * 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; |     size_t byte_length = len >> 3; | ||||||
|     int bit_length = len & 7; |     int bit_length = len & 7; | ||||||
|  | |||||||
| @ -112,7 +112,7 @@ struct sbc_frame { | |||||||
|     const AVCRC *crc_ctx; |     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]); | void ff_sbc_calculate_bits(const struct sbc_frame *frame, int (*bits)[8]); | ||||||
| 
 | 
 | ||||||
| #endif /* AVCODEC_SBC_H */ | #endif /* AVCODEC_SBC_H */ | ||||||
|  | |||||||
| @ -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; |         return -3; | ||||||
| 
 | 
 | ||||||
|     ff_sbc_calculate_bits(frame, bits); |     ff_sbc_calculate_bits(frame, bits); | ||||||
|  | |||||||
| @ -156,7 +156,7 @@ static size_t sbc_pack_frame(AVPacket *avpkt, struct sbc_frame *frame, | |||||||
|     if (crc_pos % 8) |     if (crc_pos % 8) | ||||||
|         crc_header[crc_pos >> 3] <<= 8 - (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); |     ff_sbc_calculate_bits(frame, bits); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user