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
This commit is contained in:
Anton Khirnov 2016-07-25 13:52:59 +02:00
parent ae90119c67
commit a115eb9e75
1 changed files with 0 additions and 3 deletions

View File

@ -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;
}