# HG changeset patch # User michael # Date 1156473652 0 # Node ID 5f738d1868156bd858f2ec4a80d6571315e4b162 # Parent 8e152f15dbf25699a820a28bef190777c049cf85 maybe fixing the segfault on ARM diff -r 8e152f15dbf2 -r 5f738d186815 mpegaudiodec.c --- a/mpegaudiodec.c Thu Aug 24 21:59:20 2006 +0000 +++ b/mpegaudiodec.c Fri Aug 25 02:40:52 2006 +0000 @@ -1743,8 +1743,8 @@ /* 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; }