diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 20295717521ce348a8f313c598275619557ab1cb..f0c65b499ff8987ff029637849e98339ab5e08a4 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -20,6 +20,7 @@
 
 #include "avstring.h"
 #include "avformat.h"
+#include "rtp.h"
 
 #ifdef CONFIG_RTP_MUXER
 #define MAX_EXTRADATA_SIZE ((INT_MAX - 10) / 2)