Commit d596f2b3 authored by Martin Storsjö's avatar Martin Storsjö

rtpdec: Make variables that should wrap unsigned

This makes the behaviour defined when they wrap around. The value
assigned to expected_prior was a uint32_t already.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent ba0c72a9
...@@ -83,9 +83,9 @@ typedef struct RTPStatistics { ...@@ -83,9 +83,9 @@ typedef struct RTPStatistics {
uint32_t base_seq; ///< base sequence number uint32_t base_seq; ///< base sequence number
uint32_t bad_seq; ///< last bad sequence number + 1 uint32_t bad_seq; ///< last bad sequence number + 1
int probation; ///< sequence packets till source is valid int probation; ///< sequence packets till source is valid
int received; ///< packets received uint32_t received; ///< packets received
int expected_prior; ///< packets expected in last interval uint32_t expected_prior; ///< packets expected in last interval
int received_prior; ///< packets received in last interval uint32_t received_prior; ///< packets received in last interval
uint32_t transit; ///< relative transit time for previous packet uint32_t transit; ///< relative transit time for previous packet
uint32_t jitter; ///< estimated jitter. uint32_t jitter; ///< estimated jitter.
} RTPStatistics; } RTPStatistics;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment