mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 01:02:33 +00:00
Fix adts format creation in aac+ encoder modified: libavcodec/libaacplus.c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
957867ab13
commit
32ed7da135
@ -63,9 +63,7 @@ static av_cold int aacPlus_encode_init(AVCodecContext *avctx)
|
|||||||
|
|
||||||
aacplus_cfg->bitRate = avctx->bit_rate;
|
aacplus_cfg->bitRate = avctx->bit_rate;
|
||||||
aacplus_cfg->bandWidth = avctx->cutoff;
|
aacplus_cfg->bandWidth = avctx->cutoff;
|
||||||
if (avctx->flags & CODEC_FLAG_GLOBAL_HEADER) {
|
aacplus_cfg->outputFormat = !(avctx->flags & CODEC_FLAG_GLOBAL_HEADER);
|
||||||
aacplus_cfg->outputFormat = 0; //raw aac
|
|
||||||
}
|
|
||||||
aacplus_cfg->inputFormat = AACPLUS_INPUT_16BIT;
|
aacplus_cfg->inputFormat = AACPLUS_INPUT_16BIT;
|
||||||
if (!aacplusEncSetConfiguration(s->aacplus_handle, aacplus_cfg)) {
|
if (!aacplusEncSetConfiguration(s->aacplus_handle, aacplus_cfg)) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "libaacplus doesn't support this output format!\n");
|
av_log(avctx, AV_LOG_ERROR, "libaacplus doesn't support this output format!\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user