Module: libav
Branch: release/11
Commit: 31fc9d228f28a028187c984ee2cb610b61de8798

Author:    Anton Khirnov <[email protected]>
Committer: Anton Khirnov <[email protected]>
Date:      Mon Jul 25 13:52:59 2016 +0200

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: [email protected]
(cherry picked from commit a115eb9e750543f1d8bf951414d291069bf396c2)
Signed-off-by: Anton Khirnov <[email protected]>

---

 libavcodec/mimic.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c
index 8f4e6d3..38c92ca 100644
--- a/libavcodec/mimic.c
+++ b/libavcodec/mimic.c
@@ -448,9 +448,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;
 }
 

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to