Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-09-17 05:22:27 +0300
committerRonald S. Bultje <rsbultje@gmail.com>2015-10-04 19:47:34 +0300
commit2cbaa078d18a8cf0ca28e5bb2ee9398a3e08b7b6 (patch)
treed3356bc59e507349d87b2689113abb78e99c2916 /libavcodec/takdec.c
parent26e8895b7395ed180dcb7e30465058c45050b5e2 (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/takdec.c')
-rw-r--r--libavcodec/takdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c
index 2acdb924c3..5395596cfc 100644
--- a/libavcodec/takdec.c
+++ b/libavcodec/takdec.c
@@ -908,6 +908,7 @@ static int tak_decode_frame(AVCodecContext *avctx, void *data,
return pkt->size;
}
+#if HAVE_THREADS
static int init_thread_copy(AVCodecContext *avctx)
{
TAKDecContext *s = avctx->priv_data;
@@ -926,6 +927,7 @@ static int update_thread_context(AVCodecContext *dst,
memcpy(&tdst->ti, &tsrc->ti, sizeof(TAKStreamInfo));
return 0;
}
+#endif
static av_cold int tak_decode_close(AVCodecContext *avctx)
{