summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-10-13 08:14:30 +0000
committerMartin Storsjö <martin@martin.st>2010-10-13 08:14:30 +0000
commitd678a6fd826cdbc2154d14dcfdaac1d5f6507f46 (patch)
treebb66ca209307235f63b6d105a8167a2db63ea396
parent91ec7aea206a7128a31e3e3d7f2c15c59e1c41d3 (diff)
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
-rw-r--r--libavformat/rtpdec.c2
1 files changed, 2 insertions, 0 deletions
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);
}