After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 797160 - vaapih265dec: Using wrong profile type when get profile from SPS.
vaapih265dec: Using wrong profile type when get profile from SPS.
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer-vaapi
git master
Other Linux
: Normal normal
: 1.14.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-09-18 02:43 UTC by Fei
Modified: 2018-10-01 11:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for this issue. (2.93 KB, patch)
2018-09-18 02:44 UTC, Fei
needs-work Details | Review
libs: dec: h265: fix the macros used for IDC profile (1.28 KB, patch)
2018-09-18 11:21 UTC, Víctor Manuel Jáquez Leal
committed Details | Review

Description Fei 2018-09-18 02:43:22 UTC
profile_idc flag in SPS only indicate the IDC profile, which may need some other flags together to get the real profile.
Comment 1 Fei 2018-09-18 02:44:46 UTC
Created attachment 373677 [details] [review]
patch for this issue.
Comment 2 Víctor Manuel Jáquez Leal 2018-09-18 10:18:10 UTC
Review of attachment 373677 [details] [review]:

::: gst-libs/gst/vaapi/gstvaapidecoder_h265.c
@@ +1055,3 @@
   guint i, n_profiles = 0;
 
+  profile = gst_vaapi_utils_h265_get_profile (sps);

A function's signature change is not a good idea for a patch that is going to be backported to the stable branch.
Comment 3 Víctor Manuel Jáquez Leal 2018-09-18 11:21:23 UTC
Created attachment 373683 [details] [review]
libs: dec: h265: fix the macros used for IDC profile

profile_idc flag in SPS only indicate the IDC profile, which may
need some other flags together to get the real profile.
Comment 4 Víctor Manuel Jáquez Leal 2018-09-18 11:31:54 UTC
Attachment 373683 [details] pushed as f4f935b - libs: dec: h265: fix the macros used for IDC profile
Comment 5 Víctor Manuel Jáquez Leal 2018-09-18 11:37:17 UTC
For branch 1.14

* 3cdac1ed libs: dec: h265: fix the macros used for IDC profile
Comment 6 Tim-Philipp Müller 2018-10-01 10:31:39 UTC
So just out of curiosity (writing release notes) - does this actually *fix* an issue, like decoding of some streams, or is it mostly a cleanup/code correctness patch? Hard to tell for me from the commit message and the bug here :)
Comment 7 Víctor Manuel Jáquez Leal 2018-10-01 11:07:02 UTC
(In reply to Tim-Philipp Müller from comment #6)
> So just out of curiosity (writing release notes) - does this actually *fix*
> an issue, like decoding of some streams, or is it mostly a cleanup/code
> correctness patch? Hard to tell for me from the commit message and the bug
> here :)

Just correctness :) so far the IDC enum matched with the profile, but with newer profiles it may not be the case