diff options
Diffstat (limited to 'libavcodec/psymodel.c')
-rw-r--r-- | libavcodec/psymodel.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/psymodel.c b/libavcodec/psymodel.c index 048f270467..17c1a41f4b 100644 --- a/libavcodec/psymodel.c +++ b/libavcodec/psymodel.c @@ -105,16 +105,14 @@ void ff_psy_preprocess(struct FFPsyPreprocessContext *ctx, { int ch, i; if (ctx->fstate) { - for (ch = 0; ch < channels; ch++) { + for (ch = 0; ch < channels; ch++) ff_iir_filter(ctx->fcoeffs, ctx->fstate[tag+ch], ctx->avctx->frame_size, audio + ch, ctx->avctx->channels, dest + ch, ctx->avctx->channels); - } } else { - for (ch = 0; ch < channels; ch++) { + for (ch = 0; ch < channels; ch++) for (i = 0; i < ctx->avctx->frame_size; i++) dest[i*ctx->avctx->channels + ch] = audio[i*ctx->avctx->channels + ch]; - } } } |