[FFmpeg-cvslog] r15814 - trunk/libavcodec/ac3dec.c

jbr subversion
Thu Nov 13 04:18:24 CET 2008


Author: jbr
Date: Thu Nov 13 04:18:24 2008
New Revision: 15814

Log:
silence a gcc warning about using an uninitialized variable


Modified:
   trunk/libavcodec/ac3dec.c

Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c	(original)
+++ trunk/libavcodec/ac3dec.c	Thu Nov 13 04:18:24 2008
@@ -749,8 +749,8 @@ static void decode_band_structure(GetBit
     /* calculate number of bands and band sizes based on band structure.
        note that the first 4 subbands in enhanced coupling span only 6 bins
        instead of 12. */
+    n_bands = n_subbands;
     if (num_bands || band_sizes ) {
-        n_bands = n_subbands;
         bnd_sz[0] = ecpl ? 6 : 12;
         for (bnd = 0, subbnd = 1; subbnd < n_subbands; subbnd++) {
             int subbnd_size = (ecpl && subbnd < 4) ? 6 : 12;




More information about the ffmpeg-cvslog mailing list