[FFmpeg-soc] [soc]: r3357 - aacenc/aacpsy.c
kostya
subversion at mplayerhq.hu
Sat Aug 16 16:09:23 CEST 2008
Author: kostya
Date: Sat Aug 16 16:09:23 2008
New Revision: 3357
Log:
More appropriate check for psy model selection
Modified:
aacenc/aacpsy.c
Modified: aacenc/aacpsy.c
==============================================================================
--- aacenc/aacpsy.c (original)
+++ aacenc/aacpsy.c Sat Aug 16 16:09:23 2008
@@ -797,7 +797,7 @@ int av_cold ff_aac_psy_init(AACPsyContex
{
int i;
- if(model >= AAC_NB_PSY_MODELS || !psy_models[model].window || !psy_models[model].process){
+ if(model < 0 || model >= AAC_NB_PSY_MODELS){
av_log(avctx, AV_LOG_ERROR, "Invalid psy model\n");
return -1;
}
More information about the FFmpeg-soc
mailing list