This will be used in a future commit to expose the SR as side-data.
Showing the changes to libavcodec (1 of 4 files). Show all
Unified · Split
| @@ -333,6 +333,20 @@ typedef struct AVProducerReferenceTime { · 332 unmodified lines | |||
| 333 | int flags; | 333 | int flags; |
| 334 | } AVProducerReferenceTime; | 334 | } AVProducerReferenceTime; |
| 335 | 335 | ||
| 336 | /** | ||
| 337 | * RTCP SR (Sender Report) information | ||
| 338 | * | ||
| 339 | * The received sender report information for an RTSP | ||
| 340 | * stream, exposed as AV_PKT_DATA_RTCP_SR side data. | ||
| 341 | */ | ||
| 342 | typedef struct AVRTCPSenderReport { | ||
| 343 | uint32_t ssrc; ///< Synchronization source identifier | ||
| 344 | uint64_t ntp_timestamp; ///< NTP time when the report was sent | ||
| 345 | uint32_t rtp_timestamp; ///< RTP time when the report was sent | ||
| 346 | uint32_t sender_nb_packets; ///< Total number of packets sent | ||
| 347 | uint32_t sender_nb_bytes; ///< Total number of bytes sent (excluding headers or padding) | ||
| 348 | } AVRTCPSenderReport; | ||
| 349 | |||
| 336 | /** | 350 | /** |
| 337 | * Encode extradata length to a buffer. Used by xiph codecs. | 351 | * Encode extradata length to a buffer. Used by xiph codecs. |
| 338 | * | 352 | * |