[Ffmpeg-cvslog] r6061 - trunk/libavcodec/mpegaudiodec.c

michael subversion
Thu Aug 24 03:12:27 CEST 2006


Author: michael
Date: Thu Aug 24 03:12:26 2006
New Revision: 6061

Modified:
   trunk/libavcodec/mpegaudiodec.c

Log:
faster handling of zero coeffs in the low freq decode


Modified: trunk/libavcodec/mpegaudiodec.c
==============================================================================
--- trunk/libavcodec/mpegaudiodec.c	(original)
+++ trunk/libavcodec/mpegaudiodec.c	Thu Aug 24 03:12:26 2006
@@ -1697,6 +1697,14 @@
             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;
 




More information about the ffmpeg-cvslog mailing list