rtph263depay: also use Picture Start Code to detect packet loss
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 16 Apr 2010 15:08:47 +0000 (17:08 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 30 Apr 2010 11:49:57 +0000 (13:49 +0200)
This ensures a whole frame is dropped if a (start) packet is lost,
rather than relying only on the DISCONT flag.

gst/rtp/gstrtph263depay.c

index 2f49567..adb7ded 100644 (file)
@@ -325,6 +325,7 @@ skip:
       gst_base_rtp_depayload_push_ts (depayload, timestamp, outbuf);
       rtph263depay->offset = 0;
       rtph263depay->leftover = 0;
+      rtph263depay->start = FALSE;
     } else {
       rtph263depay->start = TRUE;
     }