[FFmpeg-cvslog] r20253 - trunk/libavcodec/mlp.c
ramiro
subversion
Fri Oct 16 18:03:26 CEST 2009
Author: ramiro
Date: Fri Oct 16 18:03:26 2009
New Revision: 20253
Log:
mlp: Use smaller CRC tables if CONFIG_SMALL.
Patch by Reimar.
Modified:
trunk/libavcodec/mlp.c
Modified: trunk/libavcodec/mlp.c
==============================================================================
--- trunk/libavcodec/mlp.c Fri Oct 16 17:16:59 2009 (r20252)
+++ trunk/libavcodec/mlp.c Fri Oct 16 18:03:26 2009 (r20253)
@@ -42,9 +42,14 @@ const uint8_t ff_mlp_huffman_tables[3][1
};
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)
{
More information about the ffmpeg-cvslog
mailing list