X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmdec.c;h=1cc4ca4742f3f54d72466fb004c5a87d682b631a;hb=b3f8d871eeda38991108db7151e6c396808b22fe;hp=ee966147720931b95fd72291d5d43c912bcb90d4;hpb=a600e7145f9e32365714e4e289446706661ea4c1;p=ffmpeg diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index ee966147720..1cc4ca4742f 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -31,7 +31,6 @@ #include "blockdsp.h" #include "bswapdsp.h" #include "idctdsp.h" -#include "mpegvideo.h" #include "mpeg12.h" #include "thread.h" @@ -234,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; @@ -242,6 +242,7 @@ static av_cold int decode_init_thread_copy(AVCodecContext *avctx) return 0; } +#endif static av_cold int decode_end(AVCodecContext *avctx) {