free thread context

patch by Janne Grunau: [janne-ffmpeg grunau be]

Originally committed as revision 9508 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Janne Grunau 18 years ago committed by Benoit Fouet
parent 5416616588
commit ab2cfc59a6
  1. 2
      libavcodec/utils.c

@ -991,6 +991,8 @@ int avcodec_close(AVCodecContext *avctx)
return -1;
}
if (ENABLE_THREADS && avctx->thread_opaque)
avcodec_thread_free(avctx);
if (avctx->codec->close)
avctx->codec->close(avctx);
avcodec_default_free_buffers(avctx);

Loading…
Cancel
Save