[FFmpeg-trac] #9279(avutil:new): Vulkan hw device ctx reports a segmentation fault when initialize the device context.

FFmpeg trac at avcodec.org
Mon Jun 7 04:51:29 EEST 2021


#9279: Vulkan hw device ctx reports a segmentation fault when initialize the
device context.
-------------------------------------+-------------------------------------
             Reporter:  wenbin,chen  |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avutil       |                  Version:  git-
                                     |  master
             Keywords:  vulkan       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 How to reproduce:
 {{{
 ffmpeg -init_hw_device vulkan=vul:0 -filter_hw_device vul -i
 /home/wenbin/workplace/test_video/1080P_THE_HOBIT3_1920x1080_2700frames.264
 -vf "hwupload=extra_hw_frames=16,scale_vulkan=w=1920:h=1080" -f null -
 }}}
 Error occurs at
 https://github.com/FFmpeg/FFmpeg/blob/2fac1e370c9cf48b2e9d4a7f2c0d7236017f9bbe/libavutil/hwcontext_vulkan.c#L1018
 The CreateCommandPool function is not loaded, so the function pointer is
 NULL.

 I think the code in
 https://github.com/FFmpeg/FFmpeg/blob/2fac1e370c9cf48b2e9d4a7f2c0d7236017f9bbe/libavutil/hwcontext_vulkan.c#L1352
 should be changed to
 {{{
 err = load_functions(ctx, 1, 1);
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9279>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list