h265parser: Fix NAL size check for identification
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 7 May 2020 02:18:12 +0000 (22:18 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 7 May 2020 16:08:36 +0000 (12:08 -0400)
commit9029631f752d004912a02b775002579f414a2b33
tree64aee8447a6ee29361ef4e6f0674761b08ff9f15
parent4332dc195dd5740f72990d834071f8c888749f18
h265parser: Fix NAL size check for identification

Unlike H264, H265 requires 2 bytes after the start code to allow NAL
identification. This would otherwise report a broken NAL and skip
important data.

Fixes #1287

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1251>
gst-libs/gst/codecparsers/gsth265parser.c