]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264.c
avfilter/vf_w3fdif: add x86 SIMD
[ffmpeg] / libavcodec / h264.c
index 8b95003f7546cb58b5655883be32114019628855..3209c9c4a7d73f6981957a9b8ebcfd7926119d7b 100644 (file)
@@ -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.