diff --git a/ChangeLog b/ChangeLog index 7e316ee029..c81089c134 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-27 Thijs Vermeir + + * gst/mpegvideoparse/mpegvideoparse.c: + Add GST_BUFFER_FLAG_DELTA_UNIT to not I frame buffers + 2008-05-27 Wim Taymans * gst/rtpmanager/gstrtpbin.c: diff --git a/gst/mpegvideoparse/mpegvideoparse.c b/gst/mpegvideoparse/mpegvideoparse.c index 97146faaae..ee3628326b 100644 --- a/gst/mpegvideoparse/mpegvideoparse.c +++ b/gst/mpegvideoparse/mpegvideoparse.c @@ -264,6 +264,9 @@ mpegvideoparse_handle_picture (MpegVideoParse * mpegvideoparse, GstBuffer * buf) if (!mpeg_util_parse_picture_hdr (&hdr, pic_data, end)) return FALSE; + if (hdr.pic_type != MPEG_PICTURE_TYPE_I) + GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DELTA_UNIT); + GST_LOG_OBJECT (mpegvideoparse, "Picture type is %u", hdr.pic_type); /* FIXME: Can use the picture type and number of fields to track a * timestamp */