X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fh264.c;h=3209c9c4a7d73f6981957a9b8ebcfd7926119d7b;hb=5740dc27e1a633b636ae37ae1f7a2ab71a060486;hp=8b95003f7546cb58b5655883be32114019628855;hpb=4d2160c99a00af98cb09749f24831580e816eda9;p=ffmpeg diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 8b95003f754..3209c9c4a7d 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -659,8 +659,6 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx) ff_h264_decode_init_vlc(); - ff_init_cabac_states(); - if (avctx->codec_id == AV_CODEC_ID_H264) { if (avctx->ticks_per_frame == 1) { if(h->avctx->time_base.den < INT_MAX/2) { @@ -701,6 +699,7 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx) return 0; } +#if HAVE_THREADS static int decode_init_thread_copy(AVCodecContext *avctx) { H264Context *h = avctx->priv_data; @@ -719,6 +718,7 @@ static int decode_init_thread_copy(AVCodecContext *avctx) return 0; } +#endif /** * Run setup operations that must be run after slice header decoding.