void ff_thread_flush(AVCodecContext *avctx)

{

    FrameThreadContext *fctx = avctx->thread_opaque;



    if (!avctx->thread_opaque) return;



    park_frame_worker_threads(fctx, avctx->thread_count);



    if (fctx->prev_thread)

        update_context_from_thread(fctx->threads->avctx, fctx->prev_thread->avctx, 0);



    fctx->next_decoding = fctx->next_finished = 0;

    fctx->delaying = 1;

    fctx->prev_thread = NULL;

}

void ff_thread_flush(AVCodecContext *avctx)

{

    FrameThreadContext *fctx = avctx->thread_opaque;



    if (!avctx->thread_opaque) return;



    park_frame_worker_threads(fctx, avctx->thread_count);



    if (fctx->prev_thread)

        update_context_from_thread(fctx->threads->avctx, fctx->prev_thread->avctx, 0);



    fctx->next_decoding = fctx->next_finished = 0;

    fctx->delaying = 1;

    fctx->prev_thread = NULL;

}

    if (fctx->prev_thread)         update_context_from_thread(fctx->threads->avctx, fctx->prev_thread->avctx, 0);
void FUNC_0(AVCodecContext *VAR_0)

{

    FrameThreadContext *fctx = VAR_0->thread_opaque;



    if (!VAR_0->thread_opaque) return;



    park_frame_worker_threads(fctx, VAR_0->thread_count);



    if (fctx->prev_thread)

        update_context_from_thread(fctx->threads->VAR_0, fctx->prev_thread->VAR_0, 0);



    fctx->next_decoding = fctx->next_finished = 0;

    fctx->delaying = 1;

    fctx->prev_thread = NULL;

}

void FUNC_0(AVCodecContext *VAR_0)
{ FrameThreadContext *fctx = VAR_0->thread_opaque; if (!VAR_0->thread_opaque) return; park_frame_worker_threads(fctx, VAR_0->thread_count); if (fctx->prev_thread)
update_context_from_thread(fctx->threads->VAR_0, fctx->prev_thread->VAR_0, 0); fctx->next_decoding = fctx->next_finished = 0; fctx->delaying = 1; fctx->prev_thread = NULL; }