OSDN Git Service

mimic: do not release the newly obsolete reference at the end of decoding
authorAnton Khirnov <anton@khirnov.net>
Mon, 25 Jul 2016 11:52:59 +0000 (13:52 +0200)
committerAnton Khirnov <anton@khirnov.net>
Fri, 29 Jul 2016 13:59:48 +0000 (15:59 +0200)
commita115eb9e750543f1d8bf951414d291069bf396c2
treea3195fb39b979f4d3d15e3ff577a7cfdd30f8c55
parentae90119c6701fa09ff747cca35238e36b2d2ab2f
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
libavcodec/mimic.c