From c8f47d8b79b7ac82cd2bff6ffcc9d5168ad7e571 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 8 Jul 2009 21:36:33 +0000 Subject: cosmetics: Remove unnecessary {} around if/for blocks; move statements after if/for to the next line. Originally committed as revision 19378 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/psymodel.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libavcodec/psymodel.c') 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]; - } } } -- cgit v1.2.3