Author: alexc
Date: Thu May 21 19:20:51 2009
New Revision: 4282

Log:
Prevent a NULL pointer dereference.

Modified:
   aacenc/psymodel.c

Modified: aacenc/psymodel.c
==============================================================================
--- aacenc/psymodel.c   Wed May 20 20:56:05 2009        (r4281)
+++ aacenc/psymodel.c   Thu May 21 19:20:51 2009        (r4282)
@@ -122,6 +122,7 @@ av_cold void ff_psy_preprocess_end(struc
 {
     int i;
     ff_iir_filter_free_coeffs(ctx->fcoeffs);
+    if (ctx->fstate)
     for(i = 0; i < ctx->avctx->channels; i++){
         ff_iir_filter_free_state(ctx->fstate[i]);
     }
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to