summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorThijs Vermeir <thijsvermeir@gmail.com>2008-05-27 17:53:58 +0000
committerThijs Vermeir <thijsvermeir@gmail.com>2008-05-27 17:53:58 +0000
commitab596e4a3f19d2c8338ef8819e7013c898467e7c (patch)
tree314c0b8a5ef620bb28e94c8b93f2fff4cd5501eb /gst
parent4dfa78d0d3fb0bc05aaf36b3900c6a3e6cc8fe95 (diff)
downloadgst-plugins-bad-ab596e4a3f19d2c8338ef8819e7013c898467e7c.tar.gz
gst-plugins-bad-ab596e4a3f19d2c8338ef8819e7013c898467e7c.tar.bz2
gst-plugins-bad-ab596e4a3f19d2c8338ef8819e7013c898467e7c.zip
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
Diffstat (limited to 'gst')
-rw-r--r--gst/mpegvideoparse/mpegvideoparse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/mpegvideoparse/mpegvideoparse.c b/gst/mpegvideoparse/mpegvideoparse.c
index 97146faa..ee362832 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 */