[FFmpeg-cvslog] lavfi/earwax: add missing NULL check in filter_samples()
Stefano Sabatini
git at videolan.org
Sun Nov 4 00:18:40 CET 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sun Nov 4 00:17:27 2012 +0100| [d034847f7ab4cd2d54377b8d8eafca07980c9d4d] | committer: Stefano Sabatini
lavfi/earwax: add missing NULL check in filter_samples()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d034847f7ab4cd2d54377b8d8eafca07980c9d4d
---
libavfilter/af_earwax.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/af_earwax.c b/libavfilter/af_earwax.c
index 95602a1..2e2cac3 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;
More information about the ffmpeg-cvslog
mailing list