diff options
author | Martin Storsjö <martin@martin.st> | 2010-10-13 08:14:30 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-10-13 08:14:30 +0000 |
commit | d678a6fd826cdbc2154d14dcfdaac1d5f6507f46 (patch) | |
tree | bb66ca209307235f63b6d105a8167a2db63ea396 /libavformat | |
parent | 91ec7aea206a7128a31e3e3d7f2c15c59e1c41d3 (diff) | |
download | ffmpeg-d678a6fd826cdbc2154d14dcfdaac1d5f6507f46.tar.gz |
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
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtpdec.c | 2 |
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); } |