Commit 9a09a9fc authored by highgod0401's avatar highgod0401 Committed by Michael Niedermayer

lavfi/unsharp: fix opencl crash on 64bit linux

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 09602dbe
...@@ -51,7 +51,7 @@ static int compute_mask(int step, uint32_t *mask) ...@@ -51,7 +51,7 @@ static int compute_mask(int step, uint32_t *mask)
ret = AVERROR(ENOMEM); ret = AVERROR(ENOMEM);
goto end; goto end;
} }
counter = av_mallocz(counter_size); counter = av_mallocz(sizeof(uint32_t *) * (2 * step + 1));
if (!counter) { if (!counter) {
ret = AVERROR(ENOMEM); ret = AVERROR(ENOMEM);
goto end; goto end;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment