h264/h265parse: Fix initial skip
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 7 May 2020 15:06:45 +0000 (11:06 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 7 May 2020 16:08:36 +0000 (12:08 -0400)
commit269ab891c574263cb5fdf48de8e396b8418be1f4
tree102d9cd345de4555a61a0df8d616cf5933a64e1d
parent3784bd4a739fe08d591f8374bafb968b605196f3
h264/h265parse: Fix initial skip

Account for start codes possibly be 4 bytes. For HEVC, also take into
account that we might be missing only one of the two identification
bytes.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1251>
gst/videoparsers/gsth264parse.c
gst/videoparsers/gsth265parse.c