summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@hotmail.com>2020-03-20 16:41:16 +0800
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-04-28 13:54:11 +0000
commite99b962c0f1978cf1fbeb63799f116ad40441501 (patch)
tree88f776c9c164d20508e9147e115e96a6b5e17359 /gst-libs
parent1d38728d056d5ff1b1a17d95fe4d95cd7d1efb79 (diff)
downloadgstreamer-plugins-bad-e99b962c0f1978cf1fbeb63799f116ad40441501.tar.gz
libs: h265parser: Fix a bug for getting extension profile.
We should use the traget ExtensionProfile's IDC to check the profile_compatibility_flag, rather than the profile_idc in the stream. The old profile_compatibility_flag check always return true. This causes that profiles with same constraint flags but different profile_idc can't be recognized correctly. For example, the screen-extended-main-444 profile is always be recognized as the high-throughput-444 profile. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1121>
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/codecparsers/gsth265parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/codecparsers/gsth265parser.c b/gst-libs/gst/codecparsers/gsth265parser.c
index b134fae48..c0c8615ea 100644
--- a/gst-libs/gst/codecparsers/gsth265parser.c
+++ b/gst-libs/gst/codecparsers/gsth265parser.c
@@ -3386,7 +3386,7 @@ get_format_range_extension_profile (GstH265ProfileTierLevel * ptl)
if (extra_constraints == 0 &&
(p.profile_idc == ptl->profile_idc
- || ptl->profile_compatibility_flag[ptl->profile_idc])) {
+ || ptl->profile_compatibility_flag[p.profile_idc])) {
result = p.profile;
break;
}