diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-11-04 00:17:27 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-11-04 00:17:27 +0100 |
commit | d034847f7ab4cd2d54377b8d8eafca07980c9d4d (patch) | |
tree | ee8a3cb57ab6208248c182ac3820310745541633 /libavfilter | |
parent | 3af7919be40f8652c726c30947ecbe71ea34864f (diff) | |
download | ffmpeg-d034847f7ab4cd2d54377b8d8eafca07980c9d4d.tar.gz |
lavfi/earwax: add missing NULL check in filter_samples()
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_earwax.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |