From d034847f7ab4cd2d54377b8d8eafca07980c9d4d Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sun, 4 Nov 2012 00:17:27 +0100 Subject: [PATCH] lavfi/earwax: add missing NULL check in filter_samples() --- libavfilter/af_earwax.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/af_earwax.c b/libavfilter/af_earwax.c index 95602a1acc..2e2cac39e4 100644 --- a/libavfilter/af_earwax.c +++ b/libavfilter/af_earwax.c @@ -129,6 +129,8 @@ static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples) insamples->audio->nb_samples); int ret; + if (!outsamples) + return AVERROR(ENOMEM); avfilter_copy_buffer_ref_props(outsamples, insamples); taps = ((EarwaxContext *)inlink->dst->priv)->taps;