diff --git a/libavformat/oma.h b/libavformat/oma.h
index 2830b346733bf4a8631851cd28d6b68775ef66b3..bac8bcb73693aa47e2d8a46ebce798c5d22de515 100644
--- a/libavformat/oma.h
+++ b/libavformat/oma.h
@@ -21,6 +21,10 @@
 #ifndef AVFORMAT_OMA_H
 #define AVFORMAT_OMA_H
 
+#include <stdint.h>
+
+#include "internal.h"
+
 #define EA3_HEADER_SIZE 96
 #define ID3v2_EA3_MAGIC "ea3"
 #define OMA_ENC_HEADER_SIZE 16
@@ -36,4 +40,5 @@ enum {
 extern const uint16_t ff_oma_srate_tab[6];
 
 extern const AVCodecTag ff_oma_codec_tags[];
-#endif
+
+#endif /* AVFORMAT_OMA_H */