1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

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