]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/utils.c
pthread: store thread contexts in AVCodecInternal instead of AVCodecContext
[ffmpeg] / libavcodec / utils.c
index 262f081d18db556a2c375790c8490bec48000aa5..7b5c796b2a273f97787d534edb71bcbd6357bfc3 100644 (file)
@@ -1567,7 +1567,7 @@ av_cold int avcodec_close(AVCodecContext *avctx)
     if (avcodec_is_open(avctx)) {
         FramePool *pool = avctx->internal->pool;
         int i;
-        if (HAVE_THREADS && avctx->thread_opaque)
+        if (HAVE_THREADS && avctx->internal->thread_ctx)
             ff_thread_free(avctx);
         if (avctx->codec && avctx->codec->close)
             avctx->codec->close(avctx);