Mercurial > libavcodec.hg
comparison psymodel.c @ 9938:6c1ac45b3097 libavcodec
cosmetics: Remove unnecessary {} around if/for blocks;
move statements after if/for to the next line.
author | diego |
---|---|
date | Wed, 08 Jul 2009 21:36:33 +0000 |
parents | 3e39dbd2d9eb |
children | a79d7debe431 |
comparison
equal
deleted
inserted
replaced
9937:3e39dbd2d9eb | 9938:6c1ac45b3097 |
---|---|
103 const int16_t *audio, int16_t *dest, | 103 const int16_t *audio, int16_t *dest, |
104 int tag, int channels) | 104 int tag, int channels) |
105 { | 105 { |
106 int ch, i; | 106 int ch, i; |
107 if (ctx->fstate) { | 107 if (ctx->fstate) { |
108 for (ch = 0; ch < channels; ch++) { | 108 for (ch = 0; ch < channels; ch++) |
109 ff_iir_filter(ctx->fcoeffs, ctx->fstate[tag+ch], ctx->avctx->frame_size, | 109 ff_iir_filter(ctx->fcoeffs, ctx->fstate[tag+ch], ctx->avctx->frame_size, |
110 audio + ch, ctx->avctx->channels, | 110 audio + ch, ctx->avctx->channels, |
111 dest + ch, ctx->avctx->channels); | 111 dest + ch, ctx->avctx->channels); |
112 } | |
113 } else { | 112 } else { |
114 for (ch = 0; ch < channels; ch++) { | 113 for (ch = 0; ch < channels; ch++) |
115 for (i = 0; i < ctx->avctx->frame_size; i++) | 114 for (i = 0; i < ctx->avctx->frame_size; i++) |
116 dest[i*ctx->avctx->channels + ch] = audio[i*ctx->avctx->channels + ch]; | 115 dest[i*ctx->avctx->channels + ch] = audio[i*ctx->avctx->channels + ch]; |
117 } | |
118 } | 116 } |
119 } | 117 } |
120 | 118 |
121 av_cold void ff_psy_preprocess_end(struct FFPsyPreprocessContext *ctx) | 119 av_cold void ff_psy_preprocess_end(struct FFPsyPreprocessContext *ctx) |
122 { | 120 { |