diff options
author | Clément Bœsch <clement.boesch@smartjog.com> | 2012-01-23 14:27:11 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-01-24 13:43:41 +0400 |
commit | 94dc4a504638098a9e6a34ef895ba9f28534d445 (patch) | |
tree | 89474bd2c34c711490e00a3c0dc166bacafea2ed /libavfilter/af_pan.c | |
parent | 6728dd37ac3967395fa9c7a7905ed0511fb164e0 (diff) |
pan: reindent after remap commit.
Diffstat (limited to 'libavfilter/af_pan.c')
-rw-r--r-- | libavfilter/af_pan.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c index 741e76aeb9..2da5079b5b 100644 --- a/libavfilter/af_pan.c +++ b/libavfilter/af_pan.c @@ -231,12 +231,12 @@ static int query_formats(AVFilterContext *ctx) avfilter_set_common_packing_formats(ctx, avfilter_make_all_packing_formats()); pan->filter_samples = filter_samples_channel_mapping; } else { - const enum AVSampleFormat sample_fmts[] = {AV_SAMPLE_FMT_S16, -1}; - const int packing_fmts[] = {AVFILTER_PACKED, -1}; + const enum AVSampleFormat sample_fmts[] = {AV_SAMPLE_FMT_S16, -1}; + const int packing_fmts[] = {AVFILTER_PACKED, -1}; - avfilter_set_common_sample_formats (ctx, avfilter_make_format_list(sample_fmts)); - avfilter_set_common_packing_formats(ctx, avfilter_make_format_list(packing_fmts)); - pan->filter_samples = filter_samples_panning; + avfilter_set_common_sample_formats (ctx, avfilter_make_format_list(sample_fmts)); + avfilter_set_common_packing_formats(ctx, avfilter_make_format_list(packing_fmts)); + pan->filter_samples = filter_samples_panning; } // inlink supports any channel layout @@ -307,23 +307,23 @@ static int config_props(AVFilterLink *link) if (r < 0) return r; } else { - // renormalize - for (i = 0; i < pan->nb_output_channels; i++) { - if (!((pan->need_renorm >> i) & 1)) - continue; - t = 0; - for (j = 0; j < pan->nb_input_channels; j++) - t += pan->gain.d[i][j]; - if (t > -1E-5 && t < 1E-5) { - // t is almost 0 but not exactly, this is probably a mistake - if (t) - av_log(ctx, AV_LOG_WARNING, - "Degenerate coefficients while renormalizing\n"); - continue; + // renormalize + for (i = 0; i < pan->nb_output_channels; i++) { + if (!((pan->need_renorm >> i) & 1)) + continue; + t = 0; + for (j = 0; j < pan->nb_input_channels; j++) + t += pan->gain.d[i][j]; + if (t > -1E-5 && t < 1E-5) { + // t is almost 0 but not exactly, this is probably a mistake + if (t) + av_log(ctx, AV_LOG_WARNING, + "Degenerate coefficients while renormalizing\n"); + continue; + } + for (j = 0; j < pan->nb_input_channels; j++) + pan->gain.d[i][j] /= t; } - for (j = 0; j < pan->nb_input_channels; j++) - pan->gain.d[i][j] /= t; - } } // summary for (i = 0; i < pan->nb_output_channels; i++) { |