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

faust3 subversion at mplayerhq.hu
Wed Jun 24 21:31:52 CEST 2009


Author: faust3
Date: Wed Jun 24 21:31:52 2009
New Revision: 4528

Log:
merge assignment and index increment

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Wed Jun 24 21:25:59 2009	(r4527)
+++ wmapro/wma3dec.c	Wed Jun 24 21:31:52 2009	(r4528)
@@ -396,10 +396,8 @@ static av_cold int decode_init(AVCodecCo
             int offset = (subframe_len * 2 * critical_freq[x])
                           / s->avctx->sample_rate + 2;
             offset &= ~3;
-            if ( offset > sfb_offsets[band - 1] ) {
-                sfb_offsets[band] = offset;
-                ++band;
-            }
+            if ( offset > sfb_offsets[band - 1] )
+                sfb_offsets[band++] = offset;
         }
         sfb_offsets[band - 1] = subframe_len;
         s->num_sfb[i] = band - 1;


More information about the FFmpeg-soc mailing list