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 AAF7F4BD76 for ; Tue, 16 Jul 2024 18:14:39 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 55DB068DB0D; Tue, 16 Jul 2024 21:14:11 +0300 (EEST) Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0CFDA68D8D0 for ; Tue, 16 Jul 2024 21:13:59 +0300 (EEST) Authentication-Results: mail1.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=dIN4pgrh; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id A2E424E04 for ; Tue, 16 Jul 2024 19:16:34 +0200 (CEST) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id R8aGaFE7n-lN for ; Tue, 16 Jul 2024 19:16:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1721150189; bh=n9/Scd7Gf0szI2YeK4eeliC6MI5LN3iYfDnBAgTCiHI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dIN4pgrhw/aJzKEVTsj1A6X6q3Sw5jiAYD1dUgFJ7hkSmjXvvmLx/EtmT3OZVCQ4z lYPXP32IhF4eHsB6T2SyqZeCFOy7vvF/afHm/DyPA4obgqzyUc/3VhcOHIDKEMg9m5 HpiUULD/spVjGM3HrXjV4UnnsrTkApRsSyD9w1xz6UD356Z7qRPDbcQYb7wDmSJilm Rp8Kx4NO7nahwMq48lLWOSR5grwy9glY7ux7PE9jNISlATstmoQrG7e+gA9+5Scsj9 DzRtGPKCoCaxpKDDt1JNJzg2mb8ej+ZIK2iO0f8ANvQUBGjzawFFvwoMxus9WEbwQd WLcvgDOkx4q8g== Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail1.khirnov.net (Postfix) with ESMTPS id 0D99F4E11 for ; Tue, 16 Jul 2024 19:16:29 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 054F23A3632 for ; Tue, 16 Jul 2024 19:16:22 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 16 Jul 2024 19:11:54 +0200 Message-ID: <20240716171155.31838-39-anton@khirnov.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240716171155.31838-1-anton@khirnov.net> References: <20240716171155.31838-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 39/39] lavc/hevcdec: call ff_thread_finish_setup() even if hwaccel is in use 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: Serializing frame threading for non-threadsafe hwaccels is handled at the generic level, the decoder does not need to care about it. --- libavcodec/hevc/hevcdec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index 28835f48d6..622d9eeb84 100644 --- a/libavcodec/hevc/hevcdec.c +++ b/libavcodec/hevc/hevcdec.c @@ -3027,8 +3027,9 @@ static int hevc_frame_start(HEVCContext *s) ret = FF_HW_CALL(s->avctx, start_frame, NULL, 0); if (ret < 0) goto fail; - } else - ff_thread_finish_setup(s->avctx); + } + + ff_thread_finish_setup(s->avctx); return 0; -- 2.43.0 _______________________________________________ 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".