From d678a6fd826cdbc2154d14dcfdaac1d5f6507f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 13 Oct 2010 08:14:30 +0000 Subject: [PATCH] rtpdec: Parse the next packet in the sequence if it is available, if the previous packet didn't return any data Originally committed as revision 25460 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtpdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index ed2d0a47d2..c7fd3cfa9e 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -694,6 +694,8 @@ int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt, { int rv = rtp_parse_one_packet(s, pkt, bufptr, len); s->prev_ret = rv; + while (rv == AVERROR(EAGAIN) && has_next_packet(s)) + rv = rtp_parse_queued_packet(s, pkt); return rv ? rv : has_next_packet(s); }