# HG changeset patch # User kostya # Date 1179979367 0 # Node ID 341a60a511aba1600b23630dfc85813a612a1ce0 # Parent 93e369c55c319f5a99ddf0f2094f94983206e448 Fix dca.c compilation with #define TRACE Patch by Sergey Vlasov (v\0163u at \0141ltlinux.ru) Thread [FFmpeg-devel] [PATCH] dca: fix compilation with #define TRACE diff -r 93e369c55c31 -r 341a60a511ab dca.c --- a/dca.c Wed May 23 18:41:34 2007 +0000 +++ b/dca.c Thu May 24 04:02:47 2007 +0000 @@ -612,6 +612,7 @@ } for (j = 0; j < s->prim_channels; j++) { if (s->joint_intensity[j] > 0) { + int source_channel = s->joint_intensity[j] - 1; av_log(s->avctx, AV_LOG_DEBUG, "Joint scale factor index:\n"); for (k = s->subband_activity[j]; k < s->subband_activity[source_channel]; k++) av_log(s->avctx, AV_LOG_DEBUG, " %i", s->joint_scale_factor[j][k]); @@ -630,6 +631,7 @@ for (k = s->vq_start_subband[j]; k < s->subband_activity[j]; k++) av_log(s->avctx, AV_LOG_DEBUG, "VQ index: %i\n", s->high_freq_vq[j][k]); if(s->lfe){ + int lfe_samples = 2 * s->lfe * s->subsubframes; av_log(s->avctx, AV_LOG_DEBUG, "LFE samples:\n"); for (j = lfe_samples; j < lfe_samples * 2; j++) av_log(s->avctx, AV_LOG_DEBUG, " %f", s->lfe_data[j]);