Browse Source

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
tags/n0.8
Martin Storsjö 14 years ago
parent
commit
d678a6fd82
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/rtpdec.c

+ 2
- 0
libavformat/rtpdec.c 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);
}



Loading…
Cancel
Save