Originally committed as revision 25462 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -652,7 +652,7 @@ static int rtp_parse_one_packet(RTPDemuxContext *s, AVPacket *pkt, |
| 652 | 652 |
return rtcp_parse_packet(s, buf, len); |
| 653 | 653 |
} |
| 654 | 654 |
|
| 655 |
- if (s->seq == 0 || s->queue_size <= 1) {
|
|
| 655 |
+ if ((s->seq == 0 && !s->queue) || s->queue_size <= 1) {
|
|
| 656 | 656 |
/* First packet, or no reordering */ |
| 657 | 657 |
return rtp_parse_packet_internal(s, pkt, buf, len); |
| 658 | 658 |
} else {
|