]> git.sesse.net Git - ffmpeg/commitdiff
rtpdec: Don't use the no reordering codepath if there already is a queue
authorMartin Storsjö <martin@martin.st>
Wed, 13 Oct 2010 08:47:34 +0000 (08:47 +0000)
committerMartin Storsjö <martin@martin.st>
Wed, 13 Oct 2010 08:47:34 +0000 (08:47 +0000)
Originally committed as revision 25462 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtpdec.c

index f9ff972734e295f029c4b16f77fe271628e4cd98..0b88afa8b7b455baab7bc908c95b7b2c307af8b3 100644 (file)
@@ -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 {