]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpdec.c
rtpdec: Fix the calculation of expected number of packets
[ffmpeg] / libavformat / rtpdec.c
index 9cc53e2591969531062e8fe59fb56808b1bfb150..20c11c73cf802f4a243fca200846d0afffb2e933 100644 (file)
@@ -273,7 +273,7 @@ int ff_rtp_check_and_send_back_rr(RTPDemuxContext *s, URLContext *fd,
     // some placeholders we should really fill...
     // RFC 1889/p64
     extended_max          = stats->cycles + stats->max_seq;
-    expected              = extended_max - stats->base_seq + 1;
+    expected              = extended_max - stats->base_seq;
     lost                  = expected - stats->received;
     lost                  = FFMIN(lost, 0xffffff); // clamp it since it's only 24 bits...
     expected_interval     = expected - stats->expected_prior;