diff options
author | highgod0401 <highgod0401@gmail.com> | 2013-05-06 07:34:45 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-06 13:45:40 +0400 |
commit | 9a09a9fc43e0ce5b17bb2e97621cdb60e21de517 (patch) | |
tree | 6da22f272059ea22c674917a888e2df47a9ceee2 /libavfilter/unsharp_opencl.c | |
parent | 09602dbe7a6400e12a66001be5223298f3dc7c56 (diff) |
lavfi/unsharp: fix opencl crash on 64bit linux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/unsharp_opencl.c')
-rw-r--r-- | libavfilter/unsharp_opencl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |