mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 17:52:29 +00:00
codecparsers: mpegvideo: Add vbv_delay field to PictureHeader
https://bugzilla.gnome.org/show_bug.cgi?id=733872
This commit is contained in:
parent
7b0b74041e
commit
51c7526030
2 changed files with 3 additions and 2 deletions
|
@ -830,8 +830,8 @@ gst_mpeg_video_packet_parse_picture_header (const GstMpegVideoPacket * packet,
|
||||||
if (hdr->pic_type == 0 || hdr->pic_type > 4)
|
if (hdr->pic_type == 0 || hdr->pic_type > 4)
|
||||||
goto bad_pic_type; /* Corrupted picture packet */
|
goto bad_pic_type; /* Corrupted picture packet */
|
||||||
|
|
||||||
/* skip VBV delay */
|
/* VBV delay */
|
||||||
if (!gst_bit_reader_skip (&br, 16))
|
if (!gst_bit_reader_get_bits_uint16 (&br, &hdr->vbv_delay, 16))
|
||||||
goto failed;
|
goto failed;
|
||||||
|
|
||||||
if (hdr->pic_type == GST_MPEG_VIDEO_PICTURE_TYPE_P
|
if (hdr->pic_type == GST_MPEG_VIDEO_PICTURE_TYPE_P
|
||||||
|
|
|
@ -380,6 +380,7 @@ struct _GstMpegVideoPictureHdr
|
||||||
{
|
{
|
||||||
guint16 tsn;
|
guint16 tsn;
|
||||||
guint8 pic_type;
|
guint8 pic_type;
|
||||||
|
guint16 vbv_delay;
|
||||||
|
|
||||||
guint8 full_pel_forward_vector, full_pel_backward_vector;
|
guint8 full_pel_forward_vector, full_pel_backward_vector;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue