]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pthread_frame.c
avcodec/avcodec: Store whether AVCodec->close needs to be called
[ffmpeg] / libavcodec / pthread_frame.c
index 78116e7e5a58d5a2c0114a7f010750f3b377c70c..2ff71ca39ecd3aef4a4a644ea2e3cf8e75db1e9e 100644 (file)
@@ -801,10 +801,6 @@ void ff_frame_thread_free(AVCodecContext *avctx, int thread_count)
     free_pthread(fctx, thread_ctx_offsets);
 
     av_freep(&avctx->internal->thread_ctx);
-
-    if (avctx->priv_data && avctx->codec && avctx->codec->priv_class)
-        av_opt_free(avctx->priv_data);
-    avctx->codec = NULL;
 }
 
 static av_cold int init_thread(PerThreadContext *p, int *threads_to_free,