X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmdec.c;h=1cc4ca4742f3f54d72466fb004c5a87d682b631a;hb=b3f8d871eeda38991108db7151e6c396808b22fe;hp=a9b7e8215e0a1fbe4f783fba343889064c043b10;hpb=071f6edb985de38e9e7b6e28e710a08f7294e8ba;p=ffmpeg diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index a9b7e8215e0..1cc4ca4742f 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -233,6 +233,7 @@ static av_cold int decode_init(AVCodecContext *avctx) return 0; } +#if HAVE_THREADS static av_cold int decode_init_thread_copy(AVCodecContext *avctx) { MDECContext * const a = avctx->priv_data; @@ -241,6 +242,7 @@ static av_cold int decode_init_thread_copy(AVCodecContext *avctx) return 0; } +#endif static av_cold int decode_end(AVCodecContext *avctx) {