mpegaudioenc: Fix broken av_dlog statement.
authorDiego Biurrun <diego@biurrun.de>
Tue, 31 May 2011 19:24:13 +0000 (21:24 +0200)
committerDiego Biurrun <diego@biurrun.de>
Tue, 31 May 2011 21:45:14 +0000 (23:45 +0200)
libavcodec/mpegaudioenc.c

index 50876ec..ef265c9 100644 (file)
@@ -544,11 +544,11 @@ static void compute_bit_allocation(MpegAudioContext *s,
                 }
             }
         }
-        av_dlog(NULL, "current=%d max=%d max_sb=%d alloc=%d\n",
-                current_frame_size, max_frame_size, max_sb,
-                bit_alloc[max_sb]);
         if (max_sb < 0)
             break;
+        av_dlog(NULL, "current=%d max=%d max_sb=%d max_ch=%d alloc=%d\n",
+                current_frame_size, max_frame_size, max_sb, max_ch,
+                bit_alloc[max_ch][max_sb]);
 
         /* find alloc table entry (XXX: not optimal, should use
            pointer table) */