comparison aacenc.c @ 11580:baf1f1555e92 libavcodec

aacenc: Error when an unsupported profile is requested
author alexc
date Fri, 02 Apr 2010 16:26:10 +0000
parents 8a4984c5cacc
children 7dd2a45249a9
comparison
equal deleted inserted replaced
11579:9db3fbaba639 11580:baf1f1555e92
166 av_log(avctx, AV_LOG_ERROR, "Unsupported sample rate %d\n", avctx->sample_rate); 166 av_log(avctx, AV_LOG_ERROR, "Unsupported sample rate %d\n", avctx->sample_rate);
167 return -1; 167 return -1;
168 } 168 }
169 if (avctx->channels > 6) { 169 if (avctx->channels > 6) {
170 av_log(avctx, AV_LOG_ERROR, "Unsupported number of channels: %d\n", avctx->channels); 170 av_log(avctx, AV_LOG_ERROR, "Unsupported number of channels: %d\n", avctx->channels);
171 return -1;
172 }
173 if (avctx->profile != FF_PROFILE_UNKNOWN && avctx->profile != FF_PROFILE_AAC_LOW) {
174 av_log(avctx, AV_LOG_ERROR, "Unsupported profile %d\n", avctx->profile);
171 return -1; 175 return -1;
172 } 176 }
173 s->samplerate_index = i; 177 s->samplerate_index = i;
174 178
175 dsputil_init(&s->dsp, avctx); 179 dsputil_init(&s->dsp, avctx);