summaryrefslogtreecommitdiff
path: root/libavcodec/aacenc.c
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2015-08-21 21:28:20 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2015-08-21 21:28:20 +0100
commit88a5f93f629a6eca96c348c40902a541f10ef467 (patch)
tree747946f873841106bd8e6f476a0dfd4e1b1452ae /libavcodec/aacenc.c
parentfb0c295cc3d22a2a18de9ade9412527f8a7de0e9 (diff)
aacenc: treat unknown profile as AAC-LC
When the encoder is ran without specifying -profile:a the default avctx->profile value is -99 (FF_PROFILE_UKNOWN), which used to be treated as AAC-LC. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/aacenc.c')
-rw-r--r--libavcodec/aacenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index 0ffa4a23cc..af77379d1c 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -789,7 +789,8 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
} else if (avctx->profile == FF_PROFILE_AAC_LOW && s->options.pred) {
s->profile = 0; /* Main */
WARN_IF(1, "Prediction requested, changing profile to AAC-Main\n");
- } else if (avctx->profile == FF_PROFILE_AAC_LOW) {
+ } else if (avctx->profile == FF_PROFILE_AAC_LOW ||
+ avctx->profile == FF_PROFILE_UNKNOWN) {
s->profile = 1; /* Low */
} else {
ERROR_IF(1, "Unsupported profile %d\n", avctx->profile);