mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
Merge commit '2e814d0329'
* commit '2e814d0329':
rtpenc: Simplify code by introducing a macro for rescaling NTP timestamps
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
57b8ce414b
2 changed files with 4 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue