changeset 3613:5cb45b2211a0 libavcodec

simplify
author michael
date Thu, 24 Aug 2006 08:39:07 +0000
parents 9283f094680e
children d0310d1cce13
files mpegaudiodec.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mpegaudiodec.c	Thu Aug 24 06:57:32 2006 +0000
+++ b/mpegaudiodec.c	Thu Aug 24 08:39:07 2006 +0000
@@ -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);