[FFmpeg-cvslog] OpenCL uninit bug fix - clear is_compiled flag

srikanth git at videolan.org
Mon Mar 16 22:59:48 CET 2015


ffmpeg | branch: master | srikanth <gskanth at gmail.com> | Mon Mar  9 17:34:49 2015 -0500| [730f3c49e0821cd156b0ff714a098d202c9673df] | committer: Michael Niedermayer

OpenCL uninit bug fix - clear is_compiled flag

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

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

 libavutil/opencl.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavutil/opencl.c b/libavutil/opencl.c
index 36cb6fe..2df5653 100644
--- a/libavutil/opencl.c
+++ b/libavutil/opencl.c
@@ -588,6 +588,7 @@ end:
 
 void av_opencl_uninit(void)
 {
+    int i;
     cl_int status;
     LOCK_OPENCL;
     opencl_ctx.init_count--;
@@ -611,6 +612,9 @@ void av_opencl_uninit(void)
         }
         opencl_ctx.context = NULL;
     }
+    for (i = 0; i < opencl_ctx.kernel_code_count; i++) {
+        opencl_ctx.kernel_code[i].is_compiled = 0;
+    }
     free_device_list(&opencl_ctx.device_list);
 end:
     if (opencl_ctx.init_count <= 0)



More information about the ffmpeg-cvslog mailing list