From: Limin Wang <lance.lmw...@gmail.com>

If the rtp input is discontinued, we'll drop all the new received packets now,
It's better to update the previous seq with the new seq so that the following
packets will not be dropped always.

Signed-off-by: Limin Wang <lance.lmw...@gmail.com>
---
 libavformat/rtpdec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 3d5b200..de79536 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -833,6 +833,7 @@ static int rtp_parse_one_packet(RTPDemuxContext *s, 
AVPacket *pkt,
             /* Packet older than the previously emitted one, drop */
             av_log(s->ic, AV_LOG_WARNING,
                    "RTP: dropping old packet received too late\n");
+            s->seq = seq;
             return -1;
         } else if (diff <= 1) {
             /* Correct packet */
-- 
1.8.3.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to