# HG changeset patch # User alexc # Date 1270225570 0 # Node ID baf1f1555e92996ed54aa0ccf8c39b7615ca23a5 # Parent 9db3fbaba639c99f22114e70db70dd7a4d7cb65a aacenc: Error when an unsupported profile is requested diff -r 9db3fbaba639 -r baf1f1555e92 aacenc.c --- a/aacenc.c Fri Apr 02 14:19:39 2010 +0000 +++ b/aacenc.c Fri Apr 02 16:26:10 2010 +0000 @@ -170,6 +170,10 @@ av_log(avctx, AV_LOG_ERROR, "Unsupported number of channels: %d\n", avctx->channels); return -1; } + if (avctx->profile != FF_PROFILE_UNKNOWN && avctx->profile != FF_PROFILE_AAC_LOW) { + av_log(avctx, AV_LOG_ERROR, "Unsupported profile %d\n", avctx->profile); + return -1; + } s->samplerate_index = i; dsputil_init(&s->dsp, avctx);