[FFmpeg-devel] [PATCH]Avoid a null pointer dereference on oom in the aac encoder
Carl Eugen Hoyos
cehoyos at ag.or.at
Sun Jun 30 21:58:32 CEST 2013
Hi!
Attached patch fixes ticket #2732 for me.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/psymodel.c b/libavcodec/psymodel.c
index ea11636..bfc85b3 100644
--- a/libavcodec/psymodel.c
+++ b/libavcodec/psymodel.c
@@ -75,7 +75,7 @@ FFPsyChannelGroup *ff_psy_find_group(FFPsyContext *ctx, int channel)
av_cold void ff_psy_end(FFPsyContext *ctx)
{
- if (ctx->model->end)
+ if (ctx->model && ctx->model->end)
ctx->model->end(ctx);
av_freep(&ctx->bands);
av_freep(&ctx->num_bands);
More information about the ffmpeg-devel
mailing list