mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
gst/mpegvideoparse/mpegvideoparse.c: Add GST_BUFFER_FLAG_DELTA_UNIT to not I frame buffers
Original commit message from CVS: * gst/mpegvideoparse/mpegvideoparse.c: Add GST_BUFFER_FLAG_DELTA_UNIT to not I frame buffers
This commit is contained in:
parent
4dfa78d0d3
commit
ab596e4a3f
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-05-27 Thijs Vermeir <thijsvermeir@gmail.com>
|
||||
|
||||
* gst/mpegvideoparse/mpegvideoparse.c:
|
||||
Add GST_BUFFER_FLAG_DELTA_UNIT to not I frame buffers
|
||||
|
||||
2008-05-27 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
* gst/rtpmanager/gstrtpbin.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 */
|
||||
|
|
Loading…
Reference in a new issue