OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45fc24a
)
mlp: Use smaller CRC tables if CONFIG_SMALL.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Fri, 16 Oct 2009 16:03:26 +0000
(16:03 +0000)
committer
Ramiro Polla
<ramiro.polla@gmail.com>
Fri, 16 Oct 2009 16:03:26 +0000
(16:03 +0000)
Patch by Reimar.
Originally committed as revision 20253 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mlp.c
patch
|
blob
|
history
diff --git
a/libavcodec/mlp.c
b/libavcodec/mlp.c
index
a290e46
..
87f7c77
100644
(file)
--- a/
libavcodec/mlp.c
+++ b/
libavcodec/mlp.c
@@
-42,9
+42,14
@@
const uint8_t ff_mlp_huffman_tables[3][18][2] = {
};
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)
{