[SCM] libav/experimental: set thread_opaque to NULL when freeing it
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:03:07 UTC 2013
The following commit has been merged in the experimental branch:
commit b54bb84c3667763f438f6b66d22edf248975188d
Author: Benoit Fouet <benoit.fouet at free.fr>
Date: Fri Jul 6 15:17:52 2007 +0000
set thread_opaque to NULL when freeing it
Originally committed as revision 9506 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index 00febde..244bb52 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -97,7 +97,7 @@ void avcodec_thread_free(AVCodecContext *avctx)
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)
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list