1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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
This commit is contained in:
Martin Storsjö 2010-10-13 08:14:30 +00:00
parent 91ec7aea20
commit d678a6fd82

View File

@ -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);
}