From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 9232B4C022 for ; Wed, 5 Feb 2025 14:47:32 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1124768B958; Wed, 5 Feb 2025 16:47:30 +0200 (EET) Received: from vidala.pars.ee (vidala.pars.ee [116.203.72.101]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0F07968B35A for ; Wed, 5 Feb 2025 16:47:28 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; s=202405r; d=lynne.ee; c=relaxed/relaxed; h=Message-ID:Date:Subject:To:From; t=1738766847; bh=VNYo38rha5oLD35HzFGBBUq eTJQydDzViMNDO+hJZm0=; b=hUMyXpjqMQ+8pVte7Ye8LmvD28xE0wue9FrVHH9CFe0kubpxo2 sElLH4wGy0V3ZgGfJK41kyARHkTbrpY7e4mzeameztZ62Hclr4Z4Byg5r29IQL2TEINuQCHPscK QET8GnDnjHdsYmiqb7OMAGLaUjLaPrgEhxpGalSTAT9nExgL5jR4XmLu9/pd61H1zq17N3NlzWL /BTCdmasRN0PiWNPB0XupCv+1Wx5fKmLUmPd8j5MoxPEuk+fqWult1nMy10mvwM5zzDYIdHy3QU 5eHUmyJDshi8IVjMgJknOeImugi5kSP+2otOn7w9yo+QB+0vtcJdtrcC32dvMx37HhA==; DKIM-Signature: v=1; a=ed25519-sha256; s=202405e; d=lynne.ee; c=relaxed/relaxed; h=Message-ID:Date:Subject:To:From; t=1738766847; bh=VNYo38rha5oLD35HzFGBBUq eTJQydDzViMNDO+hJZm0=; b=dXDPTzCbJ08f5yB+GGwouprtV4Yf6Yl0IhwZqJwsYERAwpO508 0chWloWXhmrtNj4W/ltrcv/L9ekZoYoDDmAA==; From: Lynne To: ffmpeg-devel@ffmpeg.org Date: Wed, 5 Feb 2025 15:47:19 +0100 Message-ID: <20250205144725.1615098-1-dev@lynne.ee> X-Mailer: git-send-email 2.47.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] ffv1dec: fix threaded decode failures X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Lynne Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Fixes 7187eadf8c0f0c640f1d23811c55fad0cba60aa5 The issue is that while avctx->pix_fmt is synchronized between threads, f->pix_fmt was not. Fixes fate-vsynth1-ffv1-2pass10 with THREADS=2. --- libavcodec/ffv1dec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c index fcf3d525ac..0284845503 100644 --- a/libavcodec/ffv1dec.c +++ b/libavcodec/ffv1dec.c @@ -1114,6 +1114,7 @@ static int update_thread_context(AVCodecContext *dst, const AVCodecContext *src) fdst->plane_count = fsrc->plane_count; fdst->ac = fsrc->ac; fdst->colorspace = fsrc->colorspace; + fdst->pix_fmt = fsrc->pix_fmt; fdst->ec = fsrc->ec; fdst->intra = fsrc->intra; -- 2.47.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".