# HG changeset patch # User ramiro # Date 1255709006 0 # Node ID 41bd795ae40b83053c6764078f6dfe713bff74f8 # Parent 8a137661f31e8d9b0656b3ee16fa24dfafbf4a17 mlp: Use smaller CRC tables if CONFIG_SMALL. Patch by Reimar. diff -r 8a137661f31e -r 41bd795ae40b mlp.c --- a/mlp.c Fri Oct 16 15:16:59 2009 +0000 +++ b/mlp.c Fri Oct 16 16:03:26 2009 +0000 @@ -42,9 +42,14 @@ }; static int crc_init = 0; -static AVCRC crc_63[1024]; -static AVCRC crc_1D[1024]; -static AVCRC crc_2D[1024]; +#if CONFIG_SMALL +#define CRC_TABLE_SIZE 257 +#else +#define CRC_TABLE_SIZE 1024 +#endif +static AVCRC crc_63[CRC_TABLE_SIZE]; +static AVCRC crc_1D[CRC_TABLE_SIZE]; +static AVCRC crc_2D[CRC_TABLE_SIZE]; av_cold void ff_mlp_init_crc(void) {