Commit d678a6fd authored by Martin Storsjö's avatar Martin Storsjö

rtpdec: Parse the next packet in the sequence if it is available, if the...

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
parent 91ec7aea
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment