changeset 3620:5f738d186815 libavcodec

maybe fixing the segfault on ARM
author michael
date Fri, 25 Aug 2006 02:40:52 +0000
parents 8e152f15dbf2
children d4896ea0305b
files mpegaudiodec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
         }