diff options
author | Luca Abeni <lucabe72@email.it> | 2006-01-10 20:07:29 +0000 |
---|---|---|
committer | Benjamin Larsson <banan@ludd.ltu.se> | 2006-01-10 20:07:29 +0000 |
commit | 14f0c8e28af6f34411d86fa3f965e5be870024e6 (patch) | |
tree | 49a8691dc65cc32b37e12bf4f7d42b089f9051d1 /libavcodec/faac.c | |
parent | e0f80bd744996df4429624373f96442e6fa5ec07 (diff) | |
download | ffmpeg-streaming-14f0c8e28af6f34411d86fa3f965e5be870024e6.zip ffmpeg-streaming-14f0c8e28af6f34411d86fa3f965e5be870024e6.tar.gz |
Parameter added for user to set the cutoff frequency when encoding with faac.
Patch by Luca Abeni - lucabe72 at email dot it.
Originally committed as revision 4837 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/faac.c')
-rw-r--r-- | libavcodec/faac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/faac.c b/libavcodec/faac.c index 99331df..d275f3c 100644 --- a/libavcodec/faac.c +++ b/libavcodec/faac.c @@ -57,6 +57,7 @@ static int Faac_encode_init(AVCodecContext *avctx) faac_cfg->useTns = 0; faac_cfg->allowMidside = 1; faac_cfg->bitRate = avctx->bit_rate / avctx->channels; + faac_cfg->bandWidth = avctx->cutoff; if(avctx->flags & CODEC_FLAG_QSCALE) { faac_cfg->bitRate = 0; faac_cfg->quantqual = avctx->global_quality / FF_QP2LAMBDA; |