This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 0b0870dc8cfe099f51a4836c3ff5b34d77e6b5cb Author: Hans-Kristian Arntzen <[email protected]> AuthorDate: Tue Jul 14 14:34:52 2026 +0200 Commit: Lynne <[email protected]> CommitDate: Thu Jul 16 07:19:35 2026 +0000 avcodec/vp9: Ensured that private HW data is freed early for pictures. Comment copied from the h264 fix: Vulkan video decode holds a reference to a VkSemaphore that is waited on in ff_vk_decode_free_frame. The bug manifests when a H264 stream changes resolution (or similar) where the stream needs to be reset in-flight. In this case, the wait_semaphores call ends up waiting on a destroyed semaphore, leading to segfaults in drivers. FFVulkanDecodePicture does not hold an owning reference to the semaphore, so destruction order matters in this case. Vulkan validation flags the error as waiting on an invalid semaphore. --- libavcodec/vp9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 9f10db6d0f..4755d15bda 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -97,10 +97,10 @@ static void vp9_tile_data_free(VP9TileData *td) static void vp9_frame_unref(VP9Frame *f) { + av_refstruct_unref(&f->hwaccel_picture_private); ff_progress_frame_unref(&f->tf); av_refstruct_unref(&f->header_ref); av_refstruct_unref(&f->extradata); - av_refstruct_unref(&f->hwaccel_picture_private); f->segmentation_map = NULL; } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
