X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frtp.h;h=feaf16796570e7011fbb6d69439aacb8a8e55d90;hb=f890677d05bc4e8b494a73373ab4cc19791bf884;hp=f8d406ea8889b88c8c5138b6499db7484a4b675b;hpb=8034130e06b03859af9ce64f7ee653cd14df328d;p=ffmpeg diff --git a/libavformat/rtp.h b/libavformat/rtp.h index f8d406ea888..feaf1679657 100644 --- a/libavformat/rtp.h +++ b/libavformat/rtp.h @@ -23,6 +23,7 @@ #include "libavformat/avformat.h" #include "libavcodec/avcodec.h" +#include "libavutil/mathematics.h" /** * Return the payload type for a given stream used in the given format context. @@ -109,4 +110,6 @@ enum RTCPType { #define RTP_PT_IS_RTCP(x) (((x) >= RTCP_FIR && (x) <= RTCP_IJ) || \ ((x) >= RTCP_SR && (x) <= RTCP_TOKEN)) +#define NTP_TO_RTP_FORMAT(x) av_rescale((x), INT64_C(1) << 32, 1000000) + #endif /* AVFORMAT_RTP_H */