This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.1 in repository ffmpeg.
commit d1ad4bb4f0e7ea364cde16465e248f10b04b9e53 Author: Michael Niedermayer <[email protected]> AuthorDate: Mon Oct 19 23:47:24 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Nov 15 02:40:36 2026 +0100 avcodec/v4l2_buffers: count a buffer once in the context reference count Fixes: 2VchxeAyBc35 Fixes: AISLE-2026-0150-00089 Fixes: hang Hang Replicated through UnModified FFmpeg (ffprobe) with gdb using a stub V4L2 mem2mem decoder with a two plane capture format Found-by: Joshua Rogers (AISLE) The report suggested incrementing the count only on the first reference to a buffer. (cherry picked from commit 4d2d58efa9b9f3802893b1db0ea1edfbe1cc66ef) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/v4l2_buffers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/v4l2_buffers.c b/libavcodec/v4l2_buffers.c index f96c26771b..3b7915259e 100644 --- a/libavcodec/v4l2_buffers.c +++ b/libavcodec/v4l2_buffers.c @@ -268,10 +268,10 @@ static int v4l2_buf_increase_ref(V4L2Buffer *in) in->context_ref = av_refstruct_ref(s->self_ref); in->context_refcount = 1; + atomic_fetch_add_explicit(&s->refcount, 1, memory_order_relaxed); } in->status = V4L2BUF_RET_USER; - atomic_fetch_add_explicit(&s->refcount, 1, memory_order_relaxed); return 0; } -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
