summaryrefslogtreecommitdiffstats
path: root/ima4.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-23 13:56:44 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-23 13:56:44 +0000
commit5462f7f5275121516786450f35053901e7d48b22 (patch)
tree876fca85993bfe1cc9cef4be56bd8a1bb9fba663 /ima4.c
parentadfdd89012aec17df319824f712acd817a26154e (diff)
downloadmpv-5462f7f5275121516786450f35053901e7d48b22.tar.bz2
mpv-5462f7f5275121516786450f35053901e7d48b22.tar.xz
ima4 mov audio support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2421 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'ima4.c')
-rw-r--r--ima4.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/ima4.c b/ima4.c
index ee964ac9dc..3dc7a1cd3a 100644
--- a/ima4.c
+++ b/ima4.c
@@ -23,11 +23,6 @@ static int quicktime_ima4_index[16] =
-1, -1, -1, -1, 2, 4, 6, 8
};
-/* Known by divine revelation */
-
-#define BLOCK_SIZE 0x22
-#define SAMPLES_PER_BLOCK 0x40
-
/* ================================== private for ima4 */
@@ -66,7 +61,7 @@ void ima4_decode_sample(int *predictor, int *nibble, int *index, int *step)
*step = quicktime_ima4_step[*index];
}
-int ima4_decode_block(int16_t *output, unsigned char *input, int maxlen)
+int ima4_decode_block(unsigned short *output, unsigned char *input, int maxlen)
{
int predictor;
int index;
@@ -74,7 +69,7 @@ int ima4_decode_block(int16_t *output, unsigned char *input, int maxlen)
int i, nibble, nibble_count, block_size;
int olen = 0;
unsigned char *block_ptr;
- unsigned char *input_end = input + BLOCK_SIZE;
+ unsigned char *input_end = input + IMA4_BLOCK_SIZE;
// quicktime_ima4_codec_t *codec = ((quicktime_codec_t*)atrack->codec)->priv;
/* Get the chunk header */