summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-01-14 17:55:43 +0200
committerMartin Storsjö <martin@martin.st>2013-01-14 20:09:42 +0200
commitd596f2b32264e79029ead5cc3f9d4dee22c2f49e (patch)
tree1454c115d2d8ec38eb86f5d54f41aeb06bc6f243 /libavformat/rtpdec.h
parentba0c72a9ae1e2954e5dcf920f7b4e9a8f8a22f3e (diff)
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: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec.h')
-rw-r--r--libavformat/rtpdec.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/rtpdec.h b/libavformat/rtpdec.h
index 6c808cdd57..b34e099b32 100644
--- a/libavformat/rtpdec.h
+++ b/libavformat/rtpdec.h
@@ -83,9 +83,9 @@ typedef struct RTPStatistics {
uint32_t base_seq; ///< base sequence number
uint32_t bad_seq; ///< last bad sequence number + 1
int probation; ///< sequence packets till source is valid
- int received; ///< packets received
- int expected_prior; ///< packets expected in last interval
- int received_prior; ///< packets received in last interval
+ uint32_t received; ///< packets received
+ uint32_t expected_prior; ///< packets expected in last interval
+ uint32_t received_prior; ///< packets received in last interval
uint32_t transit; ///< relative transit time for previous packet
uint32_t jitter; ///< estimated jitter.
} RTPStatistics;