summaryrefslogtreecommitdiff
path: root/src/liba52/crc.c
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2006-06-02 19:54:05 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2006-06-02 19:54:05 +0000
commit329d8f32349ce401eaf8b486e496b65f27cbd920 (patch)
tree2d4d33b2c2b0a9881d8539df4be95885c9326145 /src/liba52/crc.c
parent41165ca3640ebf0edf97a783f057b572efbe94af (diff)
downloadxine-lib-329d8f32349ce401eaf8b486e496b65f27cbd920.tar.gz
xine-lib-329d8f32349ce401eaf8b486e496b65f27cbd920.tar.bz2
Include crc.c directly from xine_decoder.c since that's the only user of the
CRC code. Also take the opportunity to make the CRC code static. (Based on a Gentoo patch.) CVS patchset: 8007 CVS date: 2006/06/02 19:54:05
Diffstat (limited to 'src/liba52/crc.c')
-rw-r--r--src/liba52/crc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/liba52/crc.c b/src/liba52/crc.c
index 2cd92e116..38254c9ef 100644
--- a/src/liba52/crc.c
+++ b/src/liba52/crc.c
@@ -25,8 +25,6 @@
#include <stdio.h>
#include <inttypes.h>
-uint16_t crc16_block(uint8_t *,uint32_t);
-
static const uint16_t crc_lut[256] =
{
0x0000,0x8005,0x800f,0x000a,0x801b,0x001e,0x0014,0x8011,
@@ -63,7 +61,7 @@ static const uint16_t crc_lut[256] =
0x8213,0x0216,0x021c,0x8219,0x0208,0x820d,0x8207,0x0202
};
-uint16_t crc16_block(uint8_t *data,uint32_t num_bytes)
+static uint16_t crc16_block(uint8_t *data,uint32_t num_bytes)
{
uint32_t i;
uint16_t state=0;