Commit 25c195f0 authored by benoit's avatar benoit

set thread_opaque to NULL when freeing it


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9506 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8d01dc75
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment