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

Fixes ticket #2732.
This commit is contained in:
Carl Eugen Hoyos 2013-06-30 23:25:18 +02:00
parent 84343dd9d3
commit f4aa8085f2
1 changed files with 1 additions and 1 deletions

View File

@ -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);