static void release_delayed_buffers(PerThreadContext *p)

{

    FrameThreadContext *fctx = p->parent;



    while (p->num_released_buffers > 0) {

        AVFrame *f = &p->released_buffers[--p->num_released_buffers];



        pthread_mutex_lock(&fctx->buffer_mutex);

        free_progress(f);

        f->thread_opaque = NULL;



        f->owner->release_buffer(f->owner, f);

        pthread_mutex_unlock(&fctx->buffer_mutex);

    }

}

static void release_delayed_buffers(PerThreadContext *p)

{

    FrameThreadContext *fctx = p->parent;



    while (p->num_released_buffers > 0) {

        AVFrame *f = &p->released_buffers[--p->num_released_buffers];



        pthread_mutex_lock(&fctx->buffer_mutex);

        free_progress(f);

        f->thread_opaque = NULL;



        f->owner->release_buffer(f->owner, f);

        pthread_mutex_unlock(&fctx->buffer_mutex);

    }

}

        AVFrame *f = &p->released_buffers[--p->num_released_buffers];
static void FUNC_0(PerThreadContext *VAR_0)

{

    FrameThreadContext *fctx = VAR_0->parent;



    while (VAR_0->num_released_buffers > 0) {

        AVFrame *f = &VAR_0->released_buffers[--VAR_0->num_released_buffers];



        pthread_mutex_lock(&fctx->buffer_mutex);

        free_progress(f);

        f->thread_opaque = NULL;



        f->owner->release_buffer(f->owner, f);

        pthread_mutex_unlock(&fctx->buffer_mutex);

    }

}

static void FUNC_0(PerThreadContext *VAR_0)
{ FrameThreadContext *fctx = VAR_0->parent; while (VAR_0->num_released_buffers > 0) { AVFrame *f = &VAR_0->released_buffers[--VAR_0->num_released_buffers]; pthread_mutex_lock(&fctx->buffer_mutex); free_progress(f); f->thread_opaque = NULL; f->owner->release_buffer(f->owner, f); pthread_mutex_unlock(&fctx->buffer_mutex); } }