[FFmpeg-cvslog] lavfi/unsharp: fix opencl crash on 64bit linux

highgod0401 git at videolan.org
Mon May 6 12:03:31 CEST 2013


ffmpeg | branch: master | highgod0401 <highgod0401 at gmail.com> | Mon May  6 11:34:45 2013 +0800| [9a09a9fc43e0ce5b17bb2e97621cdb60e21de517] | committer: Michael Niedermayer

lavfi/unsharp: fix opencl crash on 64bit linux

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9a09a9fc43e0ce5b17bb2e97621cdb60e21de517
---

 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 e9a4c93..d0c25ee 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;



More information about the ffmpeg-cvslog mailing list