Commit a115eb9e authored by Anton Khirnov's avatar Anton Khirnov

mimic: do not release the newly obsolete reference at the end of decoding

The reference frames are used in update_thread_context(), so modifying
them after finish_setup() is a race. The frame in question will be
released during the next decode call.

CC: libav-stable@libav.org
parent ae90119c
......@@ -445,9 +445,6 @@ static int mimic_decode_frame(AVCodecContext *avctx, void *data,
ctx->prev_index = ctx->next_prev_index;
ctx->cur_index = ctx->next_cur_index;
/* Only release frames that aren't used for backreferences anymore */
ff_thread_release_buffer(avctx, &ctx->frames[ctx->cur_index]);
return buf_size;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment