diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-29 19:49:22 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-29 22:02:46 +0200 |
commit | 72dabdfc58064fcb249f26fc7afca2221f18a832 (patch) | |
tree | e37f5b9b18ecfd3181c19d2ad43b13ecaab6c0bc /libavcodec/psymodel.h | |
parent | 981d97f69789bdbf7a0cb325a70befeaeeb4d9e3 (diff) | |
download | ffmpeg-72dabdfc58064fcb249f26fc7afca2221f18a832.tar.gz |
aacenc: new default cutoff
Improves subjective quality
Formula and testing by: kamedo2 <fujisakihir90@yahoo.co.jp>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/psymodel.h')
-rw-r--r-- | libavcodec/psymodel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/psymodel.h b/libavcodec/psymodel.h index 317974bca4..37c8191724 100644 --- a/libavcodec/psymodel.h +++ b/libavcodec/psymodel.h @@ -29,6 +29,8 @@ /** maximum number of channels */ #define PSY_MAX_CHANS 20 +#define AAC_CUTOFF(s) (s->bit_rate ? FFMIN3(4000 + s->bit_rate/8, 12000 + s->bit_rate/32, s->sample_rate / 2) : (s->sample_rate / 2)) + /** * single band psychoacoustic information */ |