]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/flacdec.c
avcodec/pngenc: Check that there is at least 1 frame
[ffmpeg] / libavcodec / flacdec.c
index 8653da7d2ae04d8190df4c676a15164ad4f15efa..126f4e00df6c684fbdfee108e117397d3a34ad03 100644 (file)
@@ -623,6 +623,7 @@ static int flac_decode_frame(AVCodecContext *avctx, void *data,
     return bytes_read;
 }
 
+#if HAVE_THREADS
 static int init_thread_copy(AVCodecContext *avctx)
 {
     FLACContext *s = avctx->priv_data;
@@ -633,6 +634,7 @@ static int init_thread_copy(AVCodecContext *avctx)
         return allocate_buffers(s);
     return 0;
 }
+#endif
 
 static av_cold int flac_decode_close(AVCodecContext *avctx)
 {