mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
vdpaumpegdec: fix gst_byte_reader_masked_scan_uint32 usage
This commit is contained in:
parent
6705bfa129
commit
b7d5e59c9a
1 changed files with 3 additions and 2 deletions
|
@ -105,9 +105,10 @@ gst_vdp_mpeg_packetizer_get_next_packet (GstVdpMpegPacketizer * packetizer)
|
|||
offset = gst_byte_reader_masked_scan_uint32 (&packetizer->reader, 0xffffff00,
|
||||
0x00000100, 0, gst_byte_reader_get_remaining (&packetizer->reader));
|
||||
|
||||
if (offset != -1)
|
||||
if (offset != -1) {
|
||||
offset = gst_byte_reader_get_pos (&packetizer->reader) + offset;
|
||||
size = offset - packetizer->start;
|
||||
else
|
||||
} else
|
||||
size = gst_byte_reader_get_remaining (&packetizer->reader) + 3;
|
||||
|
||||
buf = gst_buffer_create_sub (packetizer->buffer, packetizer->start, size);
|
||||
|
|
Loading…
Reference in a new issue