comparison nellymoserdec.c @ 9637:f1dc62781766 libavcodec

Use skip_bits_long() for large skips This fixes ogg/theora on ARM (more generally the A32 bitstream reader)
author conrad
date Thu, 14 May 2009 00:02:07 +0000
parents b10d954527a2
children 67a20f0eb42c
comparison
equal deleted inserted replaced
9636:8e95c7402d1a 9637:f1dc62781766
101 101
102 for (i = 0; i < 2; i++) { 102 for (i = 0; i < 2; i++) {
103 aptr = audio + i * NELLY_BUF_LEN; 103 aptr = audio + i * NELLY_BUF_LEN;
104 104
105 init_get_bits(&s->gb, block, NELLY_BLOCK_LEN * 8); 105 init_get_bits(&s->gb, block, NELLY_BLOCK_LEN * 8);
106 skip_bits(&s->gb, NELLY_HEADER_BITS + i*NELLY_DETAIL_BITS); 106 skip_bits_long(&s->gb, NELLY_HEADER_BITS + i*NELLY_DETAIL_BITS);
107 107
108 for (j = 0; j < NELLY_FILL_LEN; j++) { 108 for (j = 0; j < NELLY_FILL_LEN; j++) {
109 if (bits[j] <= 0) { 109 if (bits[j] <= 0) {
110 aptr[j] = M_SQRT1_2*pows[j]; 110 aptr[j] = M_SQRT1_2*pows[j];
111 if (av_lfg_get(&s->random_state) & 1) 111 if (av_lfg_get(&s->random_state) & 1)