--- gst-plugins-good-0.10.23.orig/gst/rtp/gstrtph264depay.c	2010-05-14 02:40:17.000000000 +0200
+++ gst-plugins-good-0.10.23/gst/rtp/gstrtph264depay.c	2010-06-14 10:48:21.000000000 +0200
@@ -405,7 +405,6 @@
 gst_rtp_h264_depay_mark_delta (GstRtpH264Depay * rtph264depay, GstBuffer * nal)
 {
   gint nal_unit_type;
-  gboolean res = FALSE;
 
   if (G_UNLIKELY (GST_BUFFER_SIZE (nal) < 5))
     return FALSE;
@@ -413,14 +412,13 @@
   nal_unit_type = (GST_BUFFER_DATA (nal))[4] & 0x1f;
   GST_DEBUG_OBJECT (rtph264depay, "type %d", nal_unit_type);
   /* non-IDR VCL layer NAL considered DELTA */
-  if (nal_unit_type >= 1 && nal_unit_type <= 4) {
-    GST_BUFFER_FLAG_SET (nal, GST_BUFFER_FLAG_DELTA_UNIT);
-    res = TRUE;
-  } else {
+  if (nal_unit_type == 5) {
     GST_BUFFER_FLAG_UNSET (nal, GST_BUFFER_FLAG_DELTA_UNIT);
+    return FALSE;
+  } else {
+    GST_BUFFER_FLAG_SET (nal, GST_BUFFER_FLAG_DELTA_UNIT);
+    return TRUE;
   }
-
-  return res;
 }
 
 /* nal must have writable meta-data */
