X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fpsymodel.c;h=6274a49ea92f25f830b876edb9fc9346a08cf4fa;hb=f3af379b5c1816271b1afce0ccb2a935dc29940c;hp=76221243cb359928a77d65fae32b0f6ca0fcf326;hpb=f62fe535d5c08562abcc1b302b0220c95acb307d;p=ffmpeg diff --git a/libavcodec/psymodel.c b/libavcodec/psymodel.c index 76221243cb3..6274a49ea92 100644 --- a/libavcodec/psymodel.c +++ b/libavcodec/psymodel.c @@ -39,6 +39,7 @@ av_cold int ff_psy_init(FFPsyContext *ctx, AVCodecContext *avctx, int num_lens, ctx->group = av_mallocz_array(sizeof(ctx->group[0]), num_groups); ctx->bands = av_malloc_array (sizeof(ctx->bands[0]), num_lens); ctx->num_bands = av_malloc_array (sizeof(ctx->num_bands[0]), num_lens); + ctx->cutoff = avctx->cutoff; if (!ctx->ch || !ctx->group || !ctx->bands || !ctx->num_bands) { ff_psy_end(ctx);