summaryrefslogtreecommitdiff
path: root/libavcodec/dpcm.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-09-11 12:46:06 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-09-30 18:15:53 -0400
commit0354fb7ebe177773e44b889ba7672e4336ee377f (patch)
treec8df38c6fe0b85b35ecc968502274d9eda39544e /libavcodec/dpcm.c
parent5a54d5101780421cdcb71c018eea157e3d4d3c8f (diff)
dpcm: use smaller data types for static tables
Diffstat (limited to 'libavcodec/dpcm.c')
-rw-r--r--libavcodec/dpcm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/dpcm.c b/libavcodec/dpcm.c
index 2491292984..d4cf806b82 100644
--- a/libavcodec/dpcm.c
+++ b/libavcodec/dpcm.c
@@ -45,10 +45,10 @@ typedef struct DPCMContext {
int channels;
int16_t roq_square_array[256];
int sample[2]; ///< previous sample (for SOL_DPCM)
- const int *sol_table;//for SOL_DPCM
+ const int8_t *sol_table; ///< delta table for SOL_DPCM
} DPCMContext;
-static const int interplay_delta_table[] = {
+static const int16_t interplay_delta_table[] = {
0, 1, 2, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23,
@@ -84,17 +84,17 @@ static const int interplay_delta_table[] = {
};
-static const int sol_table_old[16] = {
+static const int8_t sol_table_old[16] = {
0x0, 0x1, 0x2, 0x3, 0x6, 0xA, 0xF, 0x15,
-0x15, -0xF, -0xA, -0x6, -0x3, -0x2, -0x1, 0x0
};
-static const int sol_table_new[16] = {
+static const int8_t sol_table_new[16] = {
0x0, 0x1, 0x2, 0x3, 0x6, 0xA, 0xF, 0x15,
0x0, -0x1, -0x2, -0x3, -0x6, -0xA, -0xF, -0x15
};
-static const int sol_table_16[128] = {
+static const int16_t sol_table_16[128] = {
0x000, 0x008, 0x010, 0x020, 0x030, 0x040, 0x050, 0x060, 0x070, 0x080,
0x090, 0x0A0, 0x0B0, 0x0C0, 0x0D0, 0x0E0, 0x0F0, 0x100, 0x110, 0x120,
0x130, 0x140, 0x150, 0x160, 0x170, 0x180, 0x190, 0x1A0, 0x1B0, 0x1C0,