summaryrefslogtreecommitdiff
path: root/libavcodec/tta.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/tta.c')
-rw-r--r--libavcodec/tta.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index 1e2e9c4ef4..1ed90fe49e 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -387,6 +387,7 @@ error:
return ret;
}
+#if HAVE_THREADS
static int init_thread_copy(AVCodecContext *avctx)
{
TTAContext *s = avctx->priv_data;
@@ -404,6 +405,7 @@ static av_cold int tta_decode_close(AVCodecContext *avctx) {
return 0;
}
+#endif
#define OFFSET(x) offsetof(TTAContext, x)
#define DEC (AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM)