[FFmpeg-cvslog] r9506 - trunk/libavcodec/pthread.c
benoit
subversion
Fri Jul 6 17:17:52 CEST 2007
Author: benoit
Date: Fri Jul 6 17:17:52 2007
New Revision: 9506
Log:
set thread_opaque to NULL when freeing it
Modified:
trunk/libavcodec/pthread.c
Modified: trunk/libavcodec/pthread.c
==============================================================================
--- trunk/libavcodec/pthread.c (original)
+++ trunk/libavcodec/pthread.c Fri Jul 6 17:17:52 2007
@@ -97,7 +97,7 @@ void avcodec_thread_free(AVCodecContext
pthread_cond_destroy(&c->current_job_cond);
pthread_cond_destroy(&c->last_job_cond);
av_free(c->workers);
- av_free(c);
+ av_freep(&avctx->thread_opaque);
}
int avcodec_thread_execute(AVCodecContext *avctx, action_t* func, void **arg, int *ret, int job_count)
More information about the ffmpeg-cvslog
mailing list