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 ESMTP id BCE1C48BDA for ; Tue, 9 Apr 2024 16:02:38 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3219B68CFD9; Tue, 9 Apr 2024 19:02:37 +0300 (EEST) Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1E7E468CB18 for ; Tue, 9 Apr 2024 19:02:31 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1712678550; bh=cp+EW8zxRbqFebC8n+Y+Dn1dMqf2FPUXCdfSmF4ToX8=; h=Date:From:To:Subject:In-Reply-To:References:From; b=uGRwPFzrOh9C4wG4aI/b05CCE+rv07YE1OMWIdPrtVRhKhW1i3+fUcvmcU/8QO7FM f8+EBvcJJDOtiRuDmxrZ39wMHmj4jmkeGqR3v1ulzOGBQ9gA7FG/GHgAKJlgarw5Md e4kCrcCGGJOLU4e4fu9OwarvuqwCyjk877IcPyUw= Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id D73E340006 for ; Tue, 9 Apr 2024 18:02:30 +0200 (CEST) Date: Tue, 9 Apr 2024 18:02:30 +0200 Message-ID: <20240409180230.GD30630@haasn.xyz> From: Niklas Haas To: ffmpeg-devel@ffmpeg.org In-Reply-To: References: <20240409125914.61149-1-ffmpeg@haasn.xyz> <20240409125914.61149-3-ffmpeg@haasn.xyz> MIME-Version: 1.0 Content-Disposition: inline Subject: Re: [FFmpeg-devel] [PATCH v2 02/11] avcodec/dovi_rpu: properly replace context header 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 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: On Tue, 09 Apr 2024 17:36:30 +0200 Andreas Rheinhardt wrote: > Niklas Haas: > > From: Niklas Haas > > > > This was never set in ff_dovi_ctx_replace(), leading to possibly > > out-of-date when copying from a sub-thread to the main thread. > > --- > > Sub-thread to the main thread? update_thread_context is not called with > the main (user-facing) AVCodecContext. Changed to "from one thread to another". > > > libavcodec/dovi_rpu.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/libavcodec/dovi_rpu.c b/libavcodec/dovi_rpu.c > > index d95c7e03af9..bfb7b9fe661 100644 > > --- a/libavcodec/dovi_rpu.c > > +++ b/libavcodec/dovi_rpu.c > > @@ -75,6 +75,7 @@ void ff_dovi_ctx_replace(DOVIContext *s, const DOVIContext *s0) > > { > > s->logctx = s0->logctx; > > s->cfg = s0->cfg; > > + s->header = s0->header; > > s->mapping = s0->mapping; > > s->color = s0->color; > > for (int i = 0; i <= DOVI_MAX_DM_ID; i++) > > _______________________________________________ > 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". _______________________________________________ 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".