Change #264215
| Category | ffmpeg |
| Changed by | Tymur Boiko <tboiko@nvidia.com> |
| Changed at | Sat 11 Apr 2026 14:50:07 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | f7ca6f74816311efa07e0cf6db6c7522b4bb847c |
Comments
vulkan: fix -Wdiscarded-qualifiers warning and misleading DRM modifier log ff_vk_find_struct returns const void *, so storing it in const void *drm_create_pnext fixes the initialization warning but then dpb_hwfc->create_pnext = drm_create_pnext assigns const void * to void *, triggering the same warning at that line. The right fix is a (void *) cast at the call site, same as done for buf_pnext. Also restrict the GetPhysicalDeviceImageFormatProperties2 verbose log in try_export_flags to the DRM modifier path only: when has_mods is false the log always printed mod[0]=0x0, which is misleading since no DRM modifier is involved. Signed-off-by: Tymur Boiko <tboiko@nvidia.com>
Changed files
- libavcodec/vulkan_decode.c
- libavutil/hwcontext_vulkan.c