comparison adpcm.c @ 4806:52cb2800e26c libavcodec

simplify
author michael
date Sat, 07 Apr 2007 21:22:50 +0000
parents a591ce5aaa04
children 30ac525752b9
comparison
equal deleted inserted replaced
4805:a591ce5aaa04 4806:52cb2800e26c
1326 src += buf_size; 1326 src += buf_size;
1327 1327
1328 get_bits_long(&gb, 32); /* Channel size */ 1328 get_bits_long(&gb, 32); /* Channel size */
1329 samplecnt = get_bits_long(&gb, 32); 1329 samplecnt = get_bits_long(&gb, 32);
1330 1330
1331 for (ch = 0; ch < 2; ch++) 1331 for (i = 0; i < 32; i++)
1332 for (i = 0; i < 16; i++) 1332 table[0][i] = get_sbits(&gb, 16);
1333 table[ch][i] = get_sbits(&gb, 16);
1334 1333
1335 /* Initialize the previous sample. */ 1334 /* Initialize the previous sample. */
1336 for (ch = 0; ch < 2; ch++) { 1335 for (ch = 0; ch < 2; ch++) {
1337 prev1[ch] = get_sbits(&gb, 16); 1336 prev1[ch] = get_sbits(&gb, 16);
1338 prev2[ch] = get_sbits(&gb, 16); 1337 prev2[ch] = get_sbits(&gb, 16);