mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
codecparsers: mpeg: fix Picture_Coding_Extension parser.
This commit is contained in:
parent
b968f82b18
commit
888e8144a0
2 changed files with 8 additions and 1 deletions
|
@ -560,6 +560,12 @@ gst_mpeg_video_parse_picture_extension (GstMpegVideoPictureExt * ext,
|
|||
|
||||
gst_bit_reader_init (&br, &data[offset], size);
|
||||
|
||||
if (gst_bit_reader_get_bits_uint8_unchecked (&br, 4) !=
|
||||
GST_MPEG_VIDEO_PACKET_EXT_PICTURE) {
|
||||
GST_DEBUG ("Not parsing a picture extension");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* f_code */
|
||||
READ_UINT8 (&br, ext->f_code[0][0], 4);
|
||||
READ_UINT8 (&br, ext->f_code[0][1], 4);
|
||||
|
|
|
@ -69,7 +69,8 @@ typedef enum {
|
|||
GST_MPEG_VIDEO_PACKET_EXT_SEQUENCE = 0x01,
|
||||
GST_MPEG_VIDEO_PACKET_EXT_SEQUENCE_DISPLAY = 0x02,
|
||||
GST_MPEG_VIDEO_PACKET_EXT_QUANT_MATRIX = 0x03,
|
||||
GST_MPEG_VIDEO_PACKET_EXT_GOP = 0x04
|
||||
GST_MPEG_VIDEO_PACKET_EXT_GOP = 0x04,
|
||||
GST_MPEG_VIDEO_PACKET_EXT_PICTURE = 0x08
|
||||
} GstMpegVideoPacketExtensionCode;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue