Closed YuJiankang closed 6 years ago
could you add some comments, why we need change this lines.
Also, please fix deprecated errors in libyami/vaapi compilation. I still get these errors with this patch:
vaapicontext.cpp:48:111: error: ‘VAProfileH264Baseline’ is deprecated [-Werror=deprecated-declarations]
if (profile == VAProfileH264ConstrainedBaseline && std::count(profileList.begin(), profileList.end(), VAProfileH264Baseline))
^~~~~~~~~~~~~~~~~~~~~
In file included from ../vaapi/vaapicontext.h:23:0,
from vaapicontext.cpp:21:
/home/uartie/Work/workspace/media/install/include/va/va.h:327:5: note: declared here
VAProfileH264Baseline va_deprecated_enum = 5,
^~~~~~~~~~~~~~~~~~~~~
vaapicontext.cpp:49:23: error: ‘VAProfileH264Baseline’ is deprecated [-Werror=deprecated-declarations]
profile = VAProfileH264Baseline;
^~~~~~~~~~~~~~~~~~~~~
In file included from ../vaapi/vaapicontext.h:23:0,
from vaapicontext.cpp:21:
/home/uartie/Work/workspace/media/install/include/va/va.h:327:5: note: declared here
VAProfileH264Baseline va_deprecated_enum = 5,
^~~~~~~~~~~~~~~~~~~~~
hi @uartie , @YuJiankang, I have sent out a pull request 786 to fix this issue.
closing this as it is superseded by #786
Fix deprecated warnings for libva2.0 Signed-off-by: jkyu jiankang.yu@intel.com