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;
     }
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to