aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/asrc_aevalsrc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-04-08 18:48:16 +0000
committerPaul B Mahol <onemda@gmail.com>2013-04-08 19:24:09 +0000
commited8373e7db14e608641f4db4f2dc3047048013f3 (patch)
treee2e967e830c06bec013599a55f5aa4f14f3082a4 /libavfilter/asrc_aevalsrc.c
parente82f562fa5ef7de4764ccd699c1fc8430454f17a (diff)
downloadffmpeg-ed8373e7db14e608641f4db4f2dc3047048013f3.tar.gz
lavfi: always check return value of ff_get_{audio,video}_buffer()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/asrc_aevalsrc.c')
-rw-r--r--libavfilter/asrc_aevalsrc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/asrc_aevalsrc.c b/libavfilter/asrc_aevalsrc.c
index 409399f3a4..0dbfdd2703 100644
--- a/libavfilter/asrc_aevalsrc.c
+++ b/libavfilter/asrc_aevalsrc.c
@@ -220,6 +220,8 @@ static int request_frame(AVFilterLink *outlink)
return AVERROR_EOF;
samplesref = ff_get_audio_buffer(outlink, eval->nb_samples);
+ if (!samplesref)
+ return AVERROR(ENOMEM);
/* evaluate expression for each single sample and for each channel */
for (i = 0; i < eval->nb_samples; i++, eval->n++) {