summaryrefslogtreecommitdiff
path: root/libavcodec/libaacplus.c
diff options
context:
space:
mode:
authorSergiy Gur'yev <piratfm@ua.fm>2011-11-24 14:53:19 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-11-24 14:18:27 +0100
commit32ed7da1350e551ec005b75e482da74f2e93fbb9 (patch)
tree960f441931a51893b4f8b97b19ef6fda0e4a21bb /libavcodec/libaacplus.c
parent957867ab139332d548c05d6a2f22ce0246b66359 (diff)
downloadffmpeg-32ed7da1350e551ec005b75e482da74f2e93fbb9.tar.gz
Fix adts format creation in aac+ encoder modified: libavcodec/libaacplus.c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libaacplus.c')
-rw-r--r--libavcodec/libaacplus.c4
1 files changed, 1 insertions, 3 deletions
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");