[FFmpeg-cvslog] r22784 - trunk/libavcodec/aacenc.c
alexc
subversion
Fri Apr 2 18:26:10 CEST 2010
Author: alexc
Date: Fri Apr 2 18:26:10 2010
New Revision: 22784
Log:
aacenc: Error when an unsupported profile is requested
Modified:
trunk/libavcodec/aacenc.c
Modified: trunk/libavcodec/aacenc.c
==============================================================================
--- trunk/libavcodec/aacenc.c Fri Apr 2 16:58:55 2010 (r22783)
+++ trunk/libavcodec/aacenc.c Fri Apr 2 18:26:10 2010 (r22784)
@@ -170,6 +170,10 @@ static av_cold int aac_encode_init(AVCod
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);
More information about the ffmpeg-cvslog
mailing list