Mercurial > libavcodec.hg
comparison dca.c @ 5069:341a60a511ab libavcodec
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
author | kostya |
---|---|
date | Thu, 24 May 2007 04:02:47 +0000 |
parents | 696cda281304 |
children | b2b6d7f4cda4 |
comparison
equal
deleted
inserted
replaced
5068:93e369c55c31 | 5069:341a60a511ab |
---|---|
610 } | 610 } |
611 av_log(s->avctx, AV_LOG_DEBUG, "\n"); | 611 av_log(s->avctx, AV_LOG_DEBUG, "\n"); |
612 } | 612 } |
613 for (j = 0; j < s->prim_channels; j++) { | 613 for (j = 0; j < s->prim_channels; j++) { |
614 if (s->joint_intensity[j] > 0) { | 614 if (s->joint_intensity[j] > 0) { |
615 int source_channel = s->joint_intensity[j] - 1; | |
615 av_log(s->avctx, AV_LOG_DEBUG, "Joint scale factor index:\n"); | 616 av_log(s->avctx, AV_LOG_DEBUG, "Joint scale factor index:\n"); |
616 for (k = s->subband_activity[j]; k < s->subband_activity[source_channel]; k++) | 617 for (k = s->subband_activity[j]; k < s->subband_activity[source_channel]; k++) |
617 av_log(s->avctx, AV_LOG_DEBUG, " %i", s->joint_scale_factor[j][k]); | 618 av_log(s->avctx, AV_LOG_DEBUG, " %i", s->joint_scale_factor[j][k]); |
618 av_log(s->avctx, AV_LOG_DEBUG, "\n"); | 619 av_log(s->avctx, AV_LOG_DEBUG, "\n"); |
619 } | 620 } |
628 } | 629 } |
629 for (j = 0; j < s->prim_channels; j++) | 630 for (j = 0; j < s->prim_channels; j++) |
630 for (k = s->vq_start_subband[j]; k < s->subband_activity[j]; k++) | 631 for (k = s->vq_start_subband[j]; k < s->subband_activity[j]; k++) |
631 av_log(s->avctx, AV_LOG_DEBUG, "VQ index: %i\n", s->high_freq_vq[j][k]); | 632 av_log(s->avctx, AV_LOG_DEBUG, "VQ index: %i\n", s->high_freq_vq[j][k]); |
632 if(s->lfe){ | 633 if(s->lfe){ |
634 int lfe_samples = 2 * s->lfe * s->subsubframes; | |
633 av_log(s->avctx, AV_LOG_DEBUG, "LFE samples:\n"); | 635 av_log(s->avctx, AV_LOG_DEBUG, "LFE samples:\n"); |
634 for (j = lfe_samples; j < lfe_samples * 2; j++) | 636 for (j = lfe_samples; j < lfe_samples * 2; j++) |
635 av_log(s->avctx, AV_LOG_DEBUG, " %f", s->lfe_data[j]); | 637 av_log(s->avctx, AV_LOG_DEBUG, " %f", s->lfe_data[j]); |
636 av_log(s->avctx, AV_LOG_DEBUG, "\n"); | 638 av_log(s->avctx, AV_LOG_DEBUG, "\n"); |
637 } | 639 } |