diff --git a/libavcodec/mpegaudioenc.c b/libavcodec/mpegaudioenc.c index 50876ec2a4..ef265c905d 100644 --- a/libavcodec/mpegaudioenc.c +++ b/libavcodec/mpegaudioenc.c @@ -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) */