Browse code

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

Martin Storsjö authored on 2010/10/13 17:47:34
Showing 1 changed files
... ...
@@ -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 {