]> git.sesse.net Git - ffmpeg/commit
rtpdec: Fix the calculation of expected number of packets
authorMartin Storsjö <martin@martin.st>
Thu, 10 Jan 2013 14:40:12 +0000 (16:40 +0200)
committerMartin Storsjö <martin@martin.st>
Sat, 12 Jan 2013 17:48:41 +0000 (19:48 +0200)
commitabae27ed3acd0a7c54f11760c5be2d2653c4edf8
treee789f9932c1058433f3a588ed5dcf97f09c661fc
parent0f94c0b1b68a751a9e35293e723677338ecd1e90
rtpdec: Fix the calculation of expected number of packets

The base_seq variable is set to first_seq - 1 (in
rtp_init_sequence), so no + 1 is needed here.

This avoids reporting 1 lost packet from the start.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpdec.c