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

michael subversion
Thu Aug 24 10:39:07 CEST 2006


Author: michael
Date: Thu Aug 24 10:39:07 2006
New Revision: 6067

Modified:
   trunk/libavcodec/mpegaudiodec.c

Log:
simplify


Modified: trunk/libavcodec/mpegaudiodec.c
==============================================================================
--- trunk/libavcodec/mpegaudiodec.c	(original)
+++ trunk/libavcodec/mpegaudiodec.c	Thu Aug 24 10:39:07 2006
@@ -2159,10 +2159,7 @@
     /* read side info */
     if (s->lsf) {
         main_data_begin = get_bits(&s->gb, 8);
-        if (s->nb_channels == 2)
-            private_bits = get_bits(&s->gb, 2);
-        else
-            private_bits = get_bits(&s->gb, 1);
+        private_bits = get_bits(&s->gb, s->nb_channels);
         nb_granules = 1;
     } else {
         main_data_begin = get_bits(&s->gb, 9);




More information about the ffmpeg-cvslog mailing list