diff options
author | Marvin Scholz <epirat07@gmail.com> | 2025-04-25 18:18:21 +0200 |
---|---|---|
committer | Marvin Scholz <epirat07@gmail.com> | 2025-07-07 16:14:02 +0200 |
commit | 74aa710879689bf9ba569fbd13fb5074a666e92b (patch) | |
tree | d57b857444b4dac9d2a434d53a603bffb2c95799 /libavcodec/defs.h | |
parent | e0abe0a02a6963955f1463d32c441fa22c1673a7 (diff) | |
download | ffmpeg-74aa710879689bf9ba569fbd13fb5074a666e92b.tar.gz |
lavf: add and use AVRTCPSenderReport struct
This will be used in a future commit to expose the SR as side-data.
Diffstat (limited to 'libavcodec/defs.h')
-rw-r--r-- | libavcodec/defs.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/defs.h b/libavcodec/defs.h index e0df60213b..8ce5d424c9 100644 --- a/libavcodec/defs.h +++ b/libavcodec/defs.h @@ -334,6 +334,20 @@ typedef struct AVProducerReferenceTime { } AVProducerReferenceTime; /** + * RTCP SR (Sender Report) information + * + * The received sender report information for an RTSP + * stream, exposed as AV_PKT_DATA_RTCP_SR side data. + */ +typedef struct AVRTCPSenderReport { + uint32_t ssrc; ///< Synchronization source identifier + uint64_t ntp_timestamp; ///< NTP time when the report was sent + uint32_t rtp_timestamp; ///< RTP time when the report was sent + uint32_t sender_nb_packets; ///< Total number of packets sent + uint32_t sender_nb_bytes; ///< Total number of bytes sent (excluding headers or padding) +} AVRTCPSenderReport; + +/** * Encode extradata length to a buffer. Used by xiph codecs. * * @param s buffer to write to; must be at least (v/255+1) bytes long |