diff options
author | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2014-07-28 11:17:05 +0300 |
---|---|---|
committer | Jan Schmidt <jan@centricular.com> | 2016-04-15 01:22:52 +1000 |
commit | 51c75260305f171ea5b760f159451296df35895f (patch) | |
tree | 05883e9d76dc0ee6a0c526fcda5935afe1f80c6f /gst-libs/gst/codecparsers | |
parent | 7b0b74041ed24b4b7ab4cfb0217059cd88f4b72e (diff) |
codecparsers: mpegvideo: Add vbv_delay field to PictureHeader
https://bugzilla.gnome.org/show_bug.cgi?id=733872
Diffstat (limited to 'gst-libs/gst/codecparsers')
-rw-r--r-- | gst-libs/gst/codecparsers/gstmpegvideoparser.c | 4 | ||||
-rw-r--r-- | gst-libs/gst/codecparsers/gstmpegvideoparser.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gst-libs/gst/codecparsers/gstmpegvideoparser.c b/gst-libs/gst/codecparsers/gstmpegvideoparser.c index 868684f43..365c2c3ab 100644 --- a/gst-libs/gst/codecparsers/gstmpegvideoparser.c +++ b/gst-libs/gst/codecparsers/gstmpegvideoparser.c @@ -830,8 +830,8 @@ gst_mpeg_video_packet_parse_picture_header (const GstMpegVideoPacket * packet, if (hdr->pic_type == 0 || hdr->pic_type > 4) goto bad_pic_type; /* Corrupted picture packet */ - /* skip VBV delay */ - if (!gst_bit_reader_skip (&br, 16)) + /* VBV delay */ + if (!gst_bit_reader_get_bits_uint16 (&br, &hdr->vbv_delay, 16)) goto failed; if (hdr->pic_type == GST_MPEG_VIDEO_PICTURE_TYPE_P diff --git a/gst-libs/gst/codecparsers/gstmpegvideoparser.h b/gst-libs/gst/codecparsers/gstmpegvideoparser.h index 4d76be145..404460e06 100644 --- a/gst-libs/gst/codecparsers/gstmpegvideoparser.h +++ b/gst-libs/gst/codecparsers/gstmpegvideoparser.h @@ -380,6 +380,7 @@ struct _GstMpegVideoPictureHdr { guint16 tsn; guint8 pic_type; + guint16 vbv_delay; guint8 full_pel_forward_vector, full_pel_backward_vector; |