diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index 60c82cd7150cbaad43fef8aec903384b171f0780..b642d3e2e3c5c49cd2a532350b70a8429205bb8b 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -133,7 +133,7 @@ int avcodec_thread_execute(AVCodecContext *avctx, action_func* func, void *arg,
     return 0;
 }
 
-int avcodec_thread_execute2(AVCodecContext *avctx, action_func2* func2, void *arg, int *ret, int job_count)
+static int avcodec_thread_execute2(AVCodecContext *avctx, action_func2* func2, void *arg, int *ret, int job_count)
 {
     ThreadContext *c= avctx->thread_opaque;
     c->func2 = func2;