]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264.c
libkvazaar: Replace asserts with proper errors
[ffmpeg] / libavcodec / h264.c
index 8b95003f7546cb58b5655883be32114019628855..b662e562f50d1e1d4f499b1abdb6e23a0216105c 100644 (file)
@@ -701,6 +701,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 +720,7 @@ static int decode_init_thread_copy(AVCodecContext *avctx)
 
     return 0;
 }
+#endif
 
 /**
  * Run setup operations that must be run after slice header decoding.