mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-13 16:40:27 +00:00
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:
parent
ae90119c67
commit
a115eb9e75
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user