From 65cdee9c95d8f97dcb471c346b1afe87a16ee726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 13 Oct 2010 08:47:34 +0000 Subject: rtpdec: Don't use the no reordering codepath if there already is a queue Originally committed as revision 25462 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtpdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/rtpdec.c') diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index f9ff972..0b88afa 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -652,7 +652,7 @@ static int rtp_parse_one_packet(RTPDemuxContext *s, AVPacket *pkt, return rtcp_parse_packet(s, buf, len); } - if (s->seq == 0 || s->queue_size <= 1) { + if ((s->seq == 0 && !s->queue) || s->queue_size <= 1) { /* First packet, or no reordering */ return rtp_parse_packet_internal(s, pkt, buf, len); } else { -- cgit v1.1