codecparsers: h265parser: return invalid profile if len is 0.
authorHe Junyan <junyan.he@intel.com>
Thu, 13 Jan 2022 02:36:24 +0000 (10:36 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 13 Jan 2022 05:28:17 +0000 (05:28 +0000)
commit05ee44b62be322b664078cf8238b74f7267127ae
tree781b9c1aec95a3aad129ebec938e782f193cc656
parent9eb0f8501fbca12a38713f1f9934b1f806bef236
codecparsers: h265parser: return invalid profile if len is 0.

Though the profiles[0] is inited as GST_H265_PROFILE_INVALID in the
gst_h265_profile_tier_level_get_profile(), the profile detecting may
change its content later. So the return of profiles[0] may not be an
invalid profile even the len is 0.

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