diff --git a/libavutil/hwcontext_opencl.c b/libavutil/hwcontext_opencl.c index 8754d73939..b00c1b6409 100644 --- a/libavutil/hwcontext_opencl.c +++ b/libavutil/hwcontext_opencl.c @@ -883,6 +883,7 @@ static void opencl_device_uninit(AVHWDeviceContext *hwdev) av_log(hwdev, AV_LOG_ERROR, "Failed to release internal " "command queue reference: %d.\n", cle); } + priv->command_queue = NULL; } }