Mercurial > libavcodec.hg
comparison ac3enc.c @ 6515:f44ffc9a68c8 libavcodec
british_english--;
author | diego |
---|---|
date | Thu, 20 Mar 2008 19:08:42 +0000 |
parents | 3941c21ad59c |
children | dbb902bb2347 |
comparison
equal
deleted
inserted
replaced
6514:77de2a1737d4 | 6515:f44ffc9a68c8 |
---|---|
674 int fbw_coeffs = cutoff * 512 / s->sample_rate; | 674 int fbw_coeffs = cutoff * 512 / s->sample_rate; |
675 bw_code = av_clip((fbw_coeffs - 73) / 3, 0, 60); | 675 bw_code = av_clip((fbw_coeffs - 73) / 3, 0, 60); |
676 } else { | 676 } else { |
677 /* use default bandwidth setting */ | 677 /* use default bandwidth setting */ |
678 /* XXX: should compute the bandwidth according to the frame | 678 /* XXX: should compute the bandwidth according to the frame |
679 size, so that we avoid anoying high freq artefacts */ | 679 size, so that we avoid anoying high freq artifacts */ |
680 bw_code = 50; | 680 bw_code = 50; |
681 } | 681 } |
682 for(ch=0;ch<s->nb_channels;ch++) { | 682 for(ch=0;ch<s->nb_channels;ch++) { |
683 /* bandwidth for each channel */ | 683 /* bandwidth for each channel */ |
684 s->chbwcod[ch] = bw_code; | 684 s->chbwcod[ch] = bw_code; |