X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fflacdec.c;h=126f4e00df6c684fbdfee108e117397d3a34ad03;hb=a852db796edce2792525d88ab47cf78222e01512;hp=8653da7d2ae04d8190df4c676a15164ad4f15efa;hpb=98ca981a238c4db5145fc705561ce1b29b2fc8f0;p=ffmpeg diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index 8653da7d2ae..126f4e00df6 100644 --- a/libavcodec/flacdec.c +++ b/libavcodec/flacdec.c @@ -623,6 +623,7 @@ static int flac_decode_frame(AVCodecContext *avctx, void *data, return bytes_read; } +#if HAVE_THREADS static int init_thread_copy(AVCodecContext *avctx) { FLACContext *s = avctx->priv_data; @@ -633,6 +634,7 @@ static int init_thread_copy(AVCodecContext *avctx) return allocate_buffers(s); return 0; } +#endif static av_cold int flac_decode_close(AVCodecContext *avctx) {