From: He Junyan Date: Fri, 20 Mar 2020 08:41:16 +0000 (+0800) Subject: libs: h265parser: Fix a bug for getting extension profile. X-Git-Tag: 1.19.3~507^2~1997 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e99b962c0f1978cf1fbeb63799f116ad40441501;p=platform%2Fupstream%2Fgstreamer.git 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: --- diff --git a/gst-libs/gst/codecparsers/gsth265parser.c b/gst-libs/gst/codecparsers/gsth265parser.c index b134fae..c0c8615 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; }