static void free_device_list(AVOpenCLDeviceList *device_list)

{

    int i, j;

    if (!device_list)

        return;

    for (i = 0; i < device_list->platform_num; i++) {

        if (!device_list->platform_node[i])

            continue;

        for (j = 0; j < device_list->platform_node[i]->device_num; j++) {

            av_freep(&(device_list->platform_node[i]->device_node[j]->device_name));

            av_freep(&(device_list->platform_node[i]->device_node[j]));

        }

        av_freep(&device_list->platform_node[i]->device_node);

        av_freep(&(device_list->platform_node[i]->platform_name));

        av_freep(&device_list->platform_node[i]);

    }

    av_freep(&device_list->platform_node);

    device_list->platform_num = 0;

}

static void free_device_list(AVOpenCLDeviceList *device_list)

{

    int i, j;

    if (!device_list)

        return;

    for (i = 0; i < device_list->platform_num; i++) {

        if (!device_list->platform_node[i])

            continue;

        for (j = 0; j < device_list->platform_node[i]->device_num; j++) {

            av_freep(&(device_list->platform_node[i]->device_node[j]->device_name));

            av_freep(&(device_list->platform_node[i]->device_node[j]));

        }

        av_freep(&device_list->platform_node[i]->device_node);

        av_freep(&(device_list->platform_node[i]->platform_name));

        av_freep(&device_list->platform_node[i]);

    }

    av_freep(&device_list->platform_node);

    device_list->platform_num = 0;

}

    if (!device_list)
static void FUNC_0(AVOpenCLDeviceList *VAR_0)

{

    int VAR_1, VAR_2;

    if (!VAR_0)

        return;

    for (VAR_1 = 0; VAR_1 < VAR_0->platform_num; VAR_1++) {

        if (!VAR_0->platform_node[VAR_1])

            continue;

        for (VAR_2 = 0; VAR_2 < VAR_0->platform_node[VAR_1]->device_num; VAR_2++) {

            av_freep(&(VAR_0->platform_node[VAR_1]->device_node[VAR_2]->device_name));

            av_freep(&(VAR_0->platform_node[VAR_1]->device_node[VAR_2]));

        }

        av_freep(&VAR_0->platform_node[VAR_1]->device_node);

        av_freep(&(VAR_0->platform_node[VAR_1]->platform_name));

        av_freep(&VAR_0->platform_node[VAR_1]);

    }

    av_freep(&VAR_0->platform_node);

    VAR_0->platform_num = 0;

}

static void FUNC_0(AVOpenCLDeviceList *VAR_0)
{ int VAR_1, VAR_2; if (!VAR_0)
return; for (VAR_1 = 0; VAR_1 < VAR_0->platform_num; VAR_1++) { if (!VAR_0->platform_node[VAR_1])
continue; for (VAR_2 = 0; VAR_2 < VAR_0->platform_node[VAR_1]->device_num; VAR_2++) { av_freep(&(VAR_0->platform_node[VAR_1]->device_node[VAR_2]->device_name)); av_freep(&(VAR_0->platform_node[VAR_1]->device_node[VAR_2])); } av_freep(&VAR_0->platform_node[VAR_1]->device_node); av_freep(&(VAR_0->platform_node[VAR_1]->platform_name)); av_freep(&VAR_0->platform_node[VAR_1]); } av_freep(&VAR_0->platform_node); VAR_0->platform_num = 0; }