diff -Nur a/src/decoder/plugins/FfmpegIo.cxx b/src/decoder/plugins/FfmpegIo.cxx
--- a/src/decoder/plugins/FfmpegIo.cxx	2023-05-22 18:46:38.000000000 +0100
+++ b/src/decoder/plugins/FfmpegIo.cxx	2023-12-17 16:45:32.172757417 +0000
@@ -26,6 +26,7 @@
 
 extern "C" {
 #include <libavutil/mem.h>
+#include <libavutil/error.h>
 }
 
 AvioStream::~AvioStream()