From 9a09a9fc43e0ce5b17bb2e97621cdb60e21de517 Mon Sep 17 00:00:00 2001 From: highgod0401 Date: Mon, 6 May 2013 11:34:45 +0800 Subject: [PATCH] lavfi/unsharp: fix opencl crash on 64bit linux Signed-off-by: Michael Niedermayer --- libavfilter/unsharp_opencl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/unsharp_opencl.c b/libavfilter/unsharp_opencl.c index e9a4c930e9..d0c25ee3ab 100644 --- a/libavfilter/unsharp_opencl.c +++ b/libavfilter/unsharp_opencl.c @@ -51,7 +51,7 @@ static int compute_mask(int step, uint32_t *mask) ret = AVERROR(ENOMEM); goto end; } - counter = av_mallocz(counter_size); + counter = av_mallocz(sizeof(uint32_t *) * (2 * step + 1)); if (!counter) { ret = AVERROR(ENOMEM); goto end;