[FFmpeg-soc] [soc]: r4426 - wmapro/wma3dec.c

faust3 subversion at mplayerhq.hu
Thu Jun 11 17:22:45 CEST 2009


Author: faust3
Date: Thu Jun 11 17:22:45 2009
New Revision: 4426

Log:
simplify estimation of the lfe channel position

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Thu Jun 11 17:02:28 2009	(r4425)
+++ wmapro/wma3dec.c	Thu Jun 11 17:22:45 2009	(r4426)
@@ -257,13 +257,10 @@ static av_cold int wma_decode_init(AVCod
     s->lfe_channel = -1;
 
     if (channel_mask & 8) {
-        unsigned int mask = 1;
-        for (i=0;i<32;i++) {
+        unsigned int mask;
+        for (mask=1;mask < 16;mask <<= 1) {
             if (channel_mask & mask)
                 ++s->lfe_channel;
-            if (mask & 8)
-                break;
-            mask <<= 1;
         }
     }
 


More information about the FFmpeg-soc mailing list