diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-04-08 18:48:16 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-04-08 19:24:09 +0000 |
commit | ed8373e7db14e608641f4db4f2dc3047048013f3 (patch) | |
tree | e2e967e830c06bec013599a55f5aa4f14f3082a4 /libavfilter/af_amerge.c | |
parent | e82f562fa5ef7de4764ccd699c1fc8430454f17a (diff) | |
download | ffmpeg-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/af_amerge.c')
-rw-r--r-- | libavfilter/af_amerge.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/af_amerge.c b/libavfilter/af_amerge.c index 6e83aeb076..e9a7fc91af 100644 --- a/libavfilter/af_amerge.c +++ b/libavfilter/af_amerge.c @@ -248,6 +248,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) return 0; outbuf = ff_get_audio_buffer(ctx->outputs[0], nb_samples); + if (!outbuf) + return AVERROR(ENOMEM); outs = outbuf->data[0]; for (i = 0; i < am->nb_inputs; i++) { inbuf[i] = ff_bufqueue_peek(&am->in[i].queue, 0); |