mirror of https://git.ffmpeg.org/ffmpeg.git
cosmetics: pretty-printing
Originally committed as revision 25974 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ce67b7cd38
commit
e8b552a818
|
@ -1304,7 +1304,7 @@ static av_cold int ac3_encode_init(AVCodecContext *avctx)
|
||||||
s->frame_size = s->frame_size_min;
|
s->frame_size = s->frame_size_min;
|
||||||
|
|
||||||
/* set bandwidth */
|
/* set bandwidth */
|
||||||
if(avctx->cutoff) {
|
if (avctx->cutoff) {
|
||||||
/* calculate bandwidth based on user-specified cutoff frequency */
|
/* calculate bandwidth based on user-specified cutoff frequency */
|
||||||
int cutoff = av_clip(avctx->cutoff, 1, s->sample_rate >> 1);
|
int cutoff = av_clip(avctx->cutoff, 1, s->sample_rate >> 1);
|
||||||
int fbw_coeffs = cutoff * 2 * AC3_MAX_COEFS / s->sample_rate;
|
int fbw_coeffs = cutoff * 2 * AC3_MAX_COEFS / s->sample_rate;
|
||||||
|
@ -1315,7 +1315,7 @@ static av_cold int ac3_encode_init(AVCodecContext *avctx)
|
||||||
size, so that we avoid annoying high frequency artifacts */
|
size, so that we avoid annoying high frequency artifacts */
|
||||||
bw_code = 50;
|
bw_code = 50;
|
||||||
}
|
}
|
||||||
for(ch=0;ch<s->fbw_channels;ch++) {
|
for (ch = 0; ch < s->fbw_channels; ch++) {
|
||||||
/* bandwidth for each channel */
|
/* bandwidth for each channel */
|
||||||
s->bandwidth_code[ch] = bw_code;
|
s->bandwidth_code[ch] = bw_code;
|
||||||
s->nb_coefs[ch] = bw_code * 3 + 73;
|
s->nb_coefs[ch] = bw_code * 3 + 73;
|
||||||
|
|
Loading…
Reference in New Issue