h265parse: Add special profile case for profile_idc 0.
authorHe Junyan <junyan.he@intel.com>
Sun, 27 Jun 2021 07:34:28 +0000 (15:34 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 2 Jul 2021 10:27:41 +0000 (10:27 +0000)
commit8ba730a5644a2db250ef8373a6c09d48a1c07f35
tree87539ee55420ca8a96a52972542d769eabf58d86
parent42a861fe591613313dc6bd6b9c3e0a660d637fb3
h265parse: Add special profile case for profile_idc 0.

This is a work-around to identify some main profile streams having
wrong profile_idc. There are some wrongly encoded main profile streams
which doesn't have any of the profile_idc values mentioned in Annex-A,
instead, general_profile_idc has been set as zero and the
general_profile_compatibility_flag[general_profile_idc] is TRUE.
Assuming them as MAIN profile for now.

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