lavfi/earwax: add missing NULL check in filter_samples()

This commit is contained in:
Stefano Sabatini 2012-11-04 00:17:27 +01:00
parent 3af7919be4
commit d034847f7a

View File

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