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:
3c693e7
)
faster handling of zero coeffs in the low freq decode
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 24 Aug 2006 01:12:26 +0000
(
01:12
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 24 Aug 2006 01:12:26 +0000
(
01:12
+0000)
Originally committed as revision 6061 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegaudiodec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegaudiodec.c
b/libavcodec/mpegaudiodec.c
index 0b55ce84afe4f9c705fa1acf349a7699d04b60c0..0c57508ee329fc200345260de19167a1864ec80c 100644
(file)
--- a/
libavcodec/mpegaudiodec.c
+++ b/
libavcodec/mpegaudiodec.c
@@
-1697,6
+1697,14
@@
static int huffman_decode(MPADecodeContext *s, GranuleDef *g,
if (get_bits_count(&s->gb) >= end_pos)
break;
y = get_vlc2(&s->gb, vlc->table, 8, 3);
+
+ if(!y){
+ g->sb_hybrid[s_index ] =
+ g->sb_hybrid[s_index+1] = 0;
+ s_index += 2;
+ continue;
+ }
+
x = y >> 4;
y = y & 0x0f;