comparison utils.c @ 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 431eef69a62f
children b481b3e3f43d
comparison
equal deleted inserted replaced
5233:eca08bfad00f 5234:c94c4aa7d25f
989 av_log(avctx, AV_LOG_ERROR, "insufficient thread locking around avcodec_open/close()\n"); 989 av_log(avctx, AV_LOG_ERROR, "insufficient thread locking around avcodec_open/close()\n");
990 entangled_thread_counter--; 990 entangled_thread_counter--;
991 return -1; 991 return -1;
992 } 992 }
993 993
994 if (ENABLE_THREADS && avctx->thread_opaque)
995 avcodec_thread_free(avctx);
994 if (avctx->codec->close) 996 if (avctx->codec->close)
995 avctx->codec->close(avctx); 997 avctx->codec->close(avctx);
996 avcodec_default_free_buffers(avctx); 998 avcodec_default_free_buffers(avctx);
997 av_freep(&avctx->priv_data); 999 av_freep(&avctx->priv_data);
998 avctx->codec = NULL; 1000 avctx->codec = NULL;