--- a/src/plugins/acoustidimport/ffmpegfingerprintdecoder.cpp
+++ b/src/plugins/acoustidimport/ffmpegfingerprintdecoder.cpp
@@ -232,7 +232,7 @@
   friend class Format;
   friend class Converter;
   AVCodecContext* m_ptr;
-  AVCodec* m_impl;
+  const AVCodec* m_impl;
   AVFrame* m_frame;
   bool m_opened;
 };
