Closed Jexu closed 1 month ago
.adv0Decoding = SET_STATUS_BY_FULL_OPEN_SOURCE(1, 0),
.adv1Decoding = SET_STATUS_BY_FULL_OPEN_SOURCE(1, 0),
Wouldn't it be more intuitive to set these to media_driver/linux/{gen12,Xe_M}/ddi/media_sku_wa_{g12,xe}.cpp
?
This would make libva not report AV1 decoding support in the so-called "free" driver, instead of crashing the video player or libavcodec when vaapi decoding is invoked. So as the downstream can fallback to using the software decoder gracefully.
@Jexu ^ + https://trac.ffmpeg.org/ticket/11213 . IMHO Avoiding the crash itself should be part of the change.
Fixes: #1852, #1832 Av1 decode needs filmgrain kernel support, and free kernel build will not support av1 decode.