mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
fb0c295cc3
commit
88a5f93f62
|
@ -789,7 +789,8 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
|
||||||
} else if (avctx->profile == FF_PROFILE_AAC_LOW && s->options.pred) {
|
} else if (avctx->profile == FF_PROFILE_AAC_LOW && s->options.pred) {
|
||||||
s->profile = 0; /* Main */
|
s->profile = 0; /* Main */
|
||||||
WARN_IF(1, "Prediction requested, changing profile to AAC-Main\n");
|
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 */
|
s->profile = 1; /* Low */
|
||||||
} else {
|
} else {
|
||||||
ERROR_IF(1, "Unsupported profile %d\n", avctx->profile);
|
ERROR_IF(1, "Unsupported profile %d\n", avctx->profile);
|
||||||
|
|
Loading…
Reference in New Issue