From 47b5fabd6a4227cb4e978fa8a19ef43d4d9bbec0 Mon Sep 17 00:00:00 2001 From: Sergiy Gur'yev Date: Thu, 24 Nov 2011 14:53:19 +0200 Subject: Fix adts format creation in aac+ encoder modified: libavcodec/libaacplus.c Signed-off-by: Michael Niedermayer (cherry picked from commit 32ed7da1350e551ec005b75e482da74f2e93fbb9) --- libavcodec/libaacplus.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libavcodec') diff --git a/libavcodec/libaacplus.c b/libavcodec/libaacplus.c index c8c87be549..a5ededbf39 100644 --- a/libavcodec/libaacplus.c +++ b/libavcodec/libaacplus.c @@ -63,9 +63,7 @@ static av_cold int aacPlus_encode_init(AVCodecContext *avctx) aacplus_cfg->bitRate = avctx->bit_rate; aacplus_cfg->bandWidth = avctx->cutoff; - if (avctx->flags & CODEC_FLAG_GLOBAL_HEADER) { - aacplus_cfg->outputFormat = 0; //raw aac - } + aacplus_cfg->outputFormat = !(avctx->flags & CODEC_FLAG_GLOBAL_HEADER); aacplus_cfg->inputFormat = AACPLUS_INPUT_16BIT; if (!aacplusEncSetConfiguration(s->aacplus_handle, aacplus_cfg)) { av_log(avctx, AV_LOG_ERROR, "libaacplus doesn't support this output format!\n"); -- cgit v1.2.3