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

faust3 subversion at mplayerhq.hu
Wed Jun 24 19:57:19 CEST 2009


Author: faust3
Date: Wed Jun 24 19:57:19 2009
New Revision: 4521

Log:
Move variable initialization to the place where it is needed

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Wed Jun 24 19:51:41 2009	(r4520)
+++ wmapro/wma3dec.c	Wed Jun 24 19:57:19 2009	(r4521)
@@ -521,7 +521,7 @@ static int decode_tilehdr(WMA3DecodeCont
         /** loop until the frame data is split between the subframes */
         while (missing_samples > 0) {
             unsigned int channel_mask = 0;
-            int min_channel_len = s->samples_per_frame;
+            int min_channel_len;
             int read_channel_mask = 1;
             int channels_for_cur_subframe = 0;
             int subframe_len;
@@ -534,6 +534,7 @@ static int decode_tilehdr(WMA3DecodeCont
                 min_samples *= channels_for_cur_subframe;
                 min_channel_len = s->channel[0].channel_len;
             } else {
+                min_channel_len = s->samples_per_frame;
                 /** find channels with the smallest overall length */
                 for (c=0;c<s->num_channels;c++) {
                     if (s->channel[c].channel_len <= min_channel_len) {


More information about the FFmpeg-soc mailing list