Change #264242
| Category | ffmpeg |
| Changed by | nyanmisaka <nst799610810@gmail.com> |
| Changed at | Sun 12 Apr 2026 14:50:38 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | ab7b6ef0a2c54c363abcb87b0df7b6f71d256f08 |
Comments
hwcontext_vulkan: fix double free when vulkan_map_to_drm fails The multiplanar image with storage_bit enabled fails to be exported to DMA-BUF on the QCOM turnip driver, thus triggering this double-free issue. ``` [Parsed_hwmap_2 @ 0xffff5c002a70] Configure hwmap vulkan -> drm_prime. [hwmap @ 0xffff5c001180] Filter input: vulkan, 1920x1080 (0). [AVHWFramesContext @ 0xffff5c004e00] Unable to export the image as a FD! free(): double free detected in tcache 2 Aborted ``` Additionally, add back an av_unused attribute. Otherwise, the compiler will complain about unused variables when CUDA is not enabled. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Changed files
- libavutil/hwcontext_vulkan.c