maybe fixing the segfault on ARM

Originally committed as revision 6081 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2006-08-25 02:40:52 +00:00
parent 5902bdd8d4
commit 7ca1ed0d9c
1 changed files with 2 additions and 2 deletions

View File

@ -1743,8 +1743,8 @@ static int huffman_decode(MPADecodeContext *s, GranuleDef *g,
/* some encoders generate an incorrect size for this
part. We must go back into the data */
s_index -= 4;
init_get_bits(&s->gb, s->gb.buffer + (last_pos>>3), s->gb.size_in_bits - (last_pos&(~7)));
skip_bits(&s->gb, last_pos&7);
init_get_bits(&s->gb, s->gb.buffer + 4*(last_pos>>5), s->gb.size_in_bits - (last_pos&(~31)));
skip_bits(&s->gb, last_pos&31);
}
break;
}