static void destroy_buffers(VADisplay display, VABufferID *buffers, unsigned int n_buffers)

{

    unsigned int i;

    for (i = 0; i < n_buffers; i++) {

        if (buffers[i]) {

            vaDestroyBuffer(display, buffers[i]);

            buffers[i] = 0;

        }

    }

}

static void destroy_buffers(VADisplay display, VABufferID *buffers, unsigned int n_buffers)

{

    unsigned int i;

    for (i = 0; i < n_buffers; i++) {

        if (buffers[i]) {

            vaDestroyBuffer(display, buffers[i]);

            buffers[i] = 0;

        }

    }

}

static void FUNC_0(VADisplay VAR_0, VABufferID *VAR_1, unsigned int VAR_2)

{

    unsigned int VAR_3;

    for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) {

        if (VAR_1[VAR_3]) {

            vaDestroyBuffer(VAR_0, VAR_1[VAR_3]);

            VAR_1[VAR_3] = 0;

        }

    }

}

static void FUNC_0(VADisplay VAR_0, VABufferID *VAR_1, unsigned int VAR_2)
{ unsigned int VAR_3; for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) { if (VAR_1[VAR_3]) { vaDestroyBuffer(VAR_0, VAR_1[VAR_3]); VAR_1[VAR_3] = 0; } } }