diff options
author | Sergey Vlasov <vsu@altlinux.org> | 2007-05-24 04:02:47 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-05-24 04:02:47 +0000 |
commit | 56e4603e675471d803919c457a42e35586053dcc (patch) | |
tree | 629ece6b6cefaa0bf1592392a3bab3936960ef2c /libavcodec/dca.c | |
parent | 7ee7412e6e4b5e93e071738299c6b2f2499accc5 (diff) | |
download | ffmpeg-56e4603e675471d803919c457a42e35586053dcc.tar.gz |
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
Originally committed as revision 9114 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dca.c')
-rw-r--r-- | libavcodec/dca.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/dca.c b/libavcodec/dca.c index 4f0f354950..99dab89442 100644 --- a/libavcodec/dca.c +++ b/libavcodec/dca.c @@ -612,6 +612,7 @@ static int dca_subframe_header(DCAContext * s) } 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 @@ static int dca_subframe_header(DCAContext * s) 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]); |