h265parser: Add a new NAL parsing API to handle malformed packets
authorSeungha Yang <seungha@centricular.com>
Mon, 9 May 2022 18:32:42 +0000 (03:32 +0900)
committerSeungha Yang <seungha@centricular.com>
Mon, 9 May 2022 18:58:51 +0000 (03:58 +0900)
commitbe84fc23ca2e9f4d4c878f1a3db8499822435c9e
tree0768a41cd25e2f7c5a0ab31a90551e991df9da3c
parentc47255d1485cd8ab6fca56422221c50ef9815683
h265parser: Add a new NAL parsing API to handle malformed packets

Add gst_h265_parser_identify_and_split_nalu_hevc() method to
handle a case where packetized stream contains start-code prefix.
This new method behaves similar to exisiting gst_h265_parser_identify_nalu_hevc()
but it will scan start-code prefix to split given data into
NAL units.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2394>
subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c
subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.h
subprojects/gst-plugins-bad/tests/check/libs/h265parser.c