summaryrefslogtreecommitdiff
path: root/libavcodec/psymodel.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-01-20 18:28:16 +0000
committerMichael Niedermayer <michaelni@gmx.at>2011-01-21 20:36:01 +0100
commit20d1f6fec1aa2a33c4cf8162e72ca88ead3d389d (patch)
tree4f5c66e0c04b2af9de77e19c7ddee747022de073 /libavcodec/psymodel.c
parentbb7114145010c06c057a1f6873b47ac2da6635df (diff)
downloadffmpeg-20d1f6fec1aa2a33c4cf8162e72ca88ead3d389d.tar.gz
Add memory allocation failure checks to ff_iir_filter_init_coeffs().
Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit d42dc217ed2b0f886ffc50b26c2bbff1fee5feca)
Diffstat (limited to 'libavcodec/psymodel.c')
-rw-r--r--libavcodec/psymodel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/psymodel.c b/libavcodec/psymodel.c
index a2e469c5d7..fb869e7d44 100644
--- a/libavcodec/psymodel.c
+++ b/libavcodec/psymodel.c
@@ -88,7 +88,7 @@ av_cold struct FFPsyPreprocessContext* ff_psy_preprocess_init(AVCodecContext *av
cutoff_coeff = 2.0 * avctx->cutoff / avctx->sample_rate;
if (cutoff_coeff)
- ctx->fcoeffs = ff_iir_filter_init_coeffs(FF_FILTER_TYPE_BUTTERWORTH, FF_FILTER_MODE_LOWPASS,
+ ctx->fcoeffs = ff_iir_filter_init_coeffs(avctx, FF_FILTER_TYPE_BUTTERWORTH, FF_FILTER_MODE_LOWPASS,
FILT_ORDER, cutoff_coeff, 0.0, 0.0);
if (ctx->fcoeffs) {
ctx->fstate = av_mallocz(sizeof(ctx->fstate[0]) * avctx->channels);