summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-01-14 11:34:19 +0200
committerMartin Storsjö <martin@martin.st>2013-01-14 17:52:02 +0200
commit30b50f79aea355f3cf1b08dbfc36754689fd6383 (patch)
tree0f8dafc82fd74984dc9675b0817c09654fb9d168 /libavformat/rtpdec.c
parentd0fe217e3990b003b3b3f2c2daaadfb2af590def (diff)
downloadffmpeg-30b50f79aea355f3cf1b08dbfc36754689fd6383.tar.gz
rtpdec: Handle more received packets than expected when sending RR
Without this, we'd signal a huge loss rate (due to unsigned wraparound) if we had received one packet more than expected (that is, one seq number sent twice). The code has a check for lost_interval <= 0, but that doesn't do what was intended as long as the variable is unsigned. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec.c')
-rw-r--r--libavformat/rtpdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 1ccc0f6f79..73d02069ea 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -258,7 +258,7 @@ int ff_rtp_check_and_send_back_rr(RTPDemuxContext *s, URLContext *fd,
uint32_t extended_max;
uint32_t expected_interval;
uint32_t received_interval;
- uint32_t lost_interval;
+ int32_t lost_interval;
uint32_t expected;
uint32_t fraction;