diff --git a/libavcodec/hapdec.c b/libavcodec/hapdec.c
index 8f5365b269dfb098fdc5981cc0ba2d7269664947..17707180c2d88d111c02c947ff363dbe3179708e 100644
--- a/libavcodec/hapdec.c
+++ b/libavcodec/hapdec.c
@@ -37,7 +37,6 @@
 #include "bytestream.h"
 #include "hap.h"
 #include "internal.h"
-#include "memory.h"
 #include "snappy.h"
 #include "texturedsp.h"
 #include "thread.h"