projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5902bdd
)
maybe fixing the segfault on ARM
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 25 Aug 2006 02:40:52 +0000
(
02:40
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 25 Aug 2006 02:40:52 +0000
(
02:40
+0000)
Originally committed as revision 6081 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegaudiodec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegaudiodec.c
b/libavcodec/mpegaudiodec.c
index
e17ee41
..
562978c
100644
(file)
--- 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;
}