changeset 5234:c94c4aa7d25f libavcodec

free thread context patch by Janne Grunau: [janne-ffmpeg grunau be]
author benoit
date Fri, 06 Jul 2007 15:24:08 +0000
parents eca08bfad00f
children 5e6c54a13769
files utils.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Fri Jul 06 15:19:35 2007 +0000
+++ b/utils.c	Fri Jul 06 15:24:08 2007 +0000
@@ -991,6 +991,8 @@
         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);