summaryrefslogtreecommitdiff
path: root/libavcodec/mimic.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-07-25 13:52:59 +0200
committerAnton Khirnov <anton@khirnov.net>2016-07-29 15:59:48 +0200
commita115eb9e750543f1d8bf951414d291069bf396c2 (patch)
treea3195fb39b979f4d3d15e3ff577a7cfdd30f8c55 /libavcodec/mimic.c
parentae90119c6701fa09ff747cca35238e36b2d2ab2f (diff)
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
Diffstat (limited to 'libavcodec/mimic.c')
-rw-r--r--libavcodec/mimic.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c
index 6f43723ef6..d7723a8ef7 100644
--- a/libavcodec/mimic.c
+++ b/libavcodec/mimic.c
@@ -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;
}