diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-09-17 05:22:27 +0300 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2015-10-04 19:47:34 +0300 |
commit | 2cbaa078d18a8cf0ca28e5bb2ee9398a3e08b7b6 (patch) | |
tree | d3356bc59e507349d87b2689113abb78e99c2916 /libavcodec/vp9.c | |
parent | 26e8895b7395ed180dcb7e30465058c45050b5e2 (diff) |
avcodec: use HAVE_THREADS header guards to silence -Wunused-function
When compiled with --disable-pthreads, e.g
http://fate.ffmpeg.org/report.cgi?time=20150917015044&slot=alpha-debian-qemu-gcc-4.7,
a bunch of -Wunused-functions are reported due to missing header guards
around threading related functions.
This patch should silence such warnings.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r-- | libavcodec/vp9.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index f1183e8e75..ed0d905a0a 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -4307,6 +4307,7 @@ static av_cold int vp9_decode_init(AVCodecContext *ctx) return init_frames(ctx); } +#if HAVE_THREADS static av_cold int vp9_decode_init_thread_copy(AVCodecContext *avctx) { return init_frames(avctx); @@ -4359,6 +4360,7 @@ static int vp9_decode_update_thread_context(AVCodecContext *dst, const AVCodecCo return 0; } +#endif static const AVProfile profiles[] = { { FF_PROFILE_VP9_0, "Profile 0" }, |