rtpdec: Handle more received packets than expected when sending RR
authorMartin Storsjö <martin@martin.st>
Mon, 14 Jan 2013 09:34:19 +0000 (11:34 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 14 Jan 2013 15:52:02 +0000 (17:52 +0200)
commit30b50f79aea355f3cf1b08dbfc36754689fd6383
tree0f8dafc82fd74984dc9675b0817c09654fb9d168
parentd0fe217e3990b003b3b3f2c2daaadfb2af590def
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>
libavformat/rtpdec.c