Mercurial > libavcodec.hg
comparison faac.c @ 3031:0f5f311f2f94 libavcodec
Parameter added for user to set the cutoff frequency when encoding with faac.
Patch by Luca Abeni - lucabe72 at email dot it.
author | banan |
---|---|
date | Tue, 10 Jan 2006 20:07:29 +0000 |
parents | bfabfdf9ce55 |
children | 0b546eab515d |
comparison
equal
deleted
inserted
replaced
3030:6bc2dc147ac5 | 3031:0f5f311f2f94 |
---|---|
55 faac_cfg->aacObjectType = LOW; | 55 faac_cfg->aacObjectType = LOW; |
56 faac_cfg->mpegVersion = MPEG4; | 56 faac_cfg->mpegVersion = MPEG4; |
57 faac_cfg->useTns = 0; | 57 faac_cfg->useTns = 0; |
58 faac_cfg->allowMidside = 1; | 58 faac_cfg->allowMidside = 1; |
59 faac_cfg->bitRate = avctx->bit_rate / avctx->channels; | 59 faac_cfg->bitRate = avctx->bit_rate / avctx->channels; |
60 faac_cfg->bandWidth = avctx->cutoff; | |
60 if(avctx->flags & CODEC_FLAG_QSCALE) { | 61 if(avctx->flags & CODEC_FLAG_QSCALE) { |
61 faac_cfg->bitRate = 0; | 62 faac_cfg->bitRate = 0; |
62 faac_cfg->quantqual = avctx->global_quality / FF_QP2LAMBDA; | 63 faac_cfg->quantqual = avctx->global_quality / FF_QP2LAMBDA; |
63 } | 64 } |
64 faac_cfg->outputFormat = 0; | 65 faac_cfg->outputFormat = 0; |