[FFmpeg-cvslog] rtpdec: Make variables that should wrap unsigned

Martin Storsjö git at videolan.org
Tue Jan 15 15:13:42 CET 2013


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Mon Jan 14 17:55:43 2013 +0200| [d596f2b32264e79029ead5cc3f9d4dee22c2f49e] | committer: 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: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d596f2b32264e79029ead5cc3f9d4dee22c2f49e
---

 libavformat/rtpdec.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/rtpdec.h b/libavformat/rtpdec.h
index 6c808cd..b34e099 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;



More information about the ffmpeg-cvslog mailing list