This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 977db8c2cbfc835401f972dc15161fc01155b189 Author: Hans-Kristian Arntzen <[email protected]> AuthorDate: Tue Jul 14 14:34:41 2026 +0200 Commit: Lynne <[email protected]> CommitDate: Thu Jul 16 07:19:35 2026 +0000 avcodec/av1: Ensure 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/av1dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index ee2b5a08ee..4be9e54902 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -701,8 +701,8 @@ static int get_pixel_format(AVCodecContext *avctx) static void av1_frame_unref(AV1Frame *f) { - ff_progress_frame_unref(&f->pf); av_refstruct_unref(&f->hwaccel_picture_private); + ff_progress_frame_unref(&f->pf); av_refstruct_unref(&f->header_ref); f->raw_frame_header = NULL; f->spatial_id = f->temporal_id = 0; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
