1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

set thread_opaque to NULL when freeing it

Originally committed as revision 9506 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Benoit Fouet 2007-07-06 15:17:52 +00:00
parent 4691a77db4
commit b54bb84c36

View File

@ -97,7 +97,7 @@ void avcodec_thread_free(AVCodecContext *avctx)
pthread_cond_destroy(&c->current_job_cond); pthread_cond_destroy(&c->current_job_cond);
pthread_cond_destroy(&c->last_job_cond); pthread_cond_destroy(&c->last_job_cond);
av_free(c->workers); 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) int avcodec_thread_execute(AVCodecContext *avctx, action_t* func, void **arg, int *ret, int job_count)