aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-08-25 02:40:52 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-08-25 02:40:52 +0000
commit7ca1ed0d9ca2952ec01448a9b9b4c11dadc13851 (patch)
treecfb4f311411068a52997db2f884b58bf2fd4d6bf /libavcodec
parent5902bdd8d4511bdd181d5b3988960917747e3d95 (diff)
downloadffmpeg-7ca1ed0d9ca2952ec01448a9b9b4c11dadc13851.tar.gz
maybe fixing the segfault on ARM
Originally committed as revision 6081 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegaudiodec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index e17ee41c5a..562978cdeb 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -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;
}