[Ffmpeg-cvslog] r6081 - trunk/libavcodec/mpegaudiodec.c
michael
subversion
Fri Aug 25 04:40:53 CEST 2006
Author: michael
Date: Fri Aug 25 04:40:52 2006
New Revision: 6081
Modified:
trunk/libavcodec/mpegaudiodec.c
Log:
maybe fixing the segfault on ARM
Modified: trunk/libavcodec/mpegaudiodec.c
==============================================================================
--- trunk/libavcodec/mpegaudiodec.c (original)
+++ trunk/libavcodec/mpegaudiodec.c Fri Aug 25 04:40:52 2006
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list