comparison 8svx.c @ 7981:fcc940b7952e libavcodec

Make 8svx codec context table pointer const to match the type of the array.
author reimar
date Thu, 02 Oct 2008 16:29:06 +0000
parents ccd351dd827b
children e9d9d946f213
comparison
equal deleted inserted replaced
7980:3b5964de95cd 7981:fcc940b7952e
30 #include "avcodec.h" 30 #include "avcodec.h"
31 31
32 /** decoder context */ 32 /** decoder context */
33 typedef struct EightSvxContext { 33 typedef struct EightSvxContext {
34 int16_t fib_acc; 34 int16_t fib_acc;
35 int16_t *table; 35 const int16_t *table;
36 } EightSvxContext; 36 } EightSvxContext;
37 37
38 static const int16_t fibonacci[16] = { -34<<8, -21<<8, -13<<8, -8<<8, -5<<8, -3<<8, -2<<8, -1<<8, 38 static const int16_t fibonacci[16] = { -34<<8, -21<<8, -13<<8, -8<<8, -5<<8, -3<<8, -2<<8, -1<<8,
39 0, 1<<8, 2<<8, 3<<8, 5<<8, 8<<8, 13<<8, 21<<8 }; 39 0, 1<<8, 2<<8, 3<<8, 5<<8, 8<<8, 13<<8, 21<<8 };
40 static const int16_t exponential[16] = { -128<<8, -64<<8, -32<<8, -16<<8, -8<<8, -4<<8, -2<<8, -1<<8, 40 static const int16_t exponential[16] = { -128<<8, -64<<8, -32<<8, -16<<8, -8<<8, -4<<8, -2<<8, -1<<8,