Commit f4aa8085 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Avoid a null pointer dereference on oom in the aac encoder.

Fixes ticket #2732.
parent 84343dd9
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment