Message ID | 20240607130135.9088-28-anton@khirnov.net |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:c209:0:b0:460:55fa:d5ed with SMTP id d9csp1011463vqo; Fri, 7 Jun 2024 06:08:16 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUoDLwX6/g4PqcHsMXyXsk+8q059lEize9SQcSJe+ypnFtKNv+xGF6cUE5xRQbnf8M0OSZuK54e0wILHd9YcxDns2pzSzvt+w6Cww== X-Google-Smtp-Source: AGHT+IGtCqQcAf9S//iQ0ea+9PjVlrTB3VKY7/QmM4Y4/sc7GXSGLkBqyJI8Lsg/rPx9WahnN5uq X-Received: by 2002:a05:651c:1505:b0:2e0:e470:882f with SMTP id 38308e7fff4ca-2eadce3774amr19598471fa.28.1717765695923; Fri, 07 Jun 2024 06:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717765695; cv=none; d=google.com; s=arc-20160816; b=fDuJK6UW4MvFVuQWl89aIBV3aCp9q/NcAy4jdqykud/VgiHA6oWbHnKVbz5ovGyjhJ xh8TxSdaUbPAuPB0iMmwZGuudIOxmBddPbVqJlWsfnLQc/mcZ4T8T0hBVHFVOAq4Gagf PlYMICykwEuxXyzK7OAgHKrazMhP3wqbzsrU85WvqKWE3jjfI0uYmsKK8vwIIqzE7PEt feU4d/EBlIPbdYZwckQlDiaGOnsZe9IB8Qiqygx+9Ha/2ZJ8cLrSi49KmVaUMEPN7ch2 VNlZi7JtSootkvpHzaZsIddexCX2GaGrtKZpMKM2QqhVjKnVdUMzoJSxuTJeL33kC/Pd h96w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=TRKeUAcHvQQjSC1exhdIo7l7ifpEgNEANcLpOz0pS4M=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=L9AYYHX9GB/xQVugP7Iil+AccLODVRlG47eJhwHezPuy3dsWk8MyOtnRQxKbFXzBPw zskgDrQiocAFKL8f83xZK/nvNf6NpB1245KIID0Y3loApjV2wfiX4L+HqyIpVbeXWuC8 iRIaO4sTyUlseFb7ZnZU+q16IO8KrZgYSfb4bJsViw7yundX0jogiVB5V/0zwb9/nOkj RQD1VVYPgAo+GP/nlUKvTOoIJDyckLJDYoOS8lR4VgeJusA7+Ga4lhqW+yd1JLbvasUR jN7KRUf4KjyuKdTXJovIx/uFW3PpWonjC6m+AfKSlFX/Qwg3v/Mus0cu8iKNzD2hRKAu RLlw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=rq9Wrsiz; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 38308e7fff4ca-2ead4134913si9746461fa.253.2024.06.07.06.08.15; Fri, 07 Jun 2024 06:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=rq9Wrsiz; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 439BE68D839; Fri, 7 Jun 2024 16:04:22 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3DB2F68D785 for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 16:03:51 +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=rq9Wrsiz; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id 26EC14D76 for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 15:03:51 +0200 (CEST) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id Hco1C9AZTVjV for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 15:03:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1717765422; bh=lDn7Pmj0Ka5EVWZNNvCMdHdSofydNR5oOSvySLS7z1Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rq9WrsizeUv18R2JW30E0WXpVl8CThoXgXR5ozAyfTkI7NdOkG2oAoFXnf9BfWpiw wOQreTtq2f5svkf9Ev/WHK4I5un2K5X5nyzfO7AmblRlviFrYKPjX0Lbn111KOUFYS hmLyLJ5ADf3c0NQamHllOeJfPzr9P7ZtwLQnWGT7+SBYmtX1KV8bnGZtKTPfEqjWuz 4T/ynNPVL5pbvNHOU3DgGRqHtV6SrQJh/KKqw7JyP6mNbCBPXXA8Q05llOwQmblSfH 9/HsaV+PhOK7sVcsnQtVZDehGirGA3bsy4HxZAp1+C8RjZgSVMDGzd15FpyuS/385W NHkxBMLxSj8dw== 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 7CC404E06 for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 15:03:42 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 9FB983A1A43 for <ffmpeg-devel@ffmpeg.org>; Fri, 07 Jun 2024 15:03:35 +0200 (CEST) From: Anton Khirnov <anton@khirnov.net> To: ffmpeg-devel@ffmpeg.org Date: Fri, 7 Jun 2024 15:01:24 +0200 Message-ID: <20240607130135.9088-28-anton@khirnov.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240607130135.9088-1-anton@khirnov.net> References: <20240607130135.9088-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 28/39] lavc/hevcdec: move calling hwaccel start_frame to hevc_frame_start() X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: abjauRCrCXZ6 |
Series |
[FFmpeg-devel,01/39] lavc/hevcdec: do not free SliceHeader arrays in pic_arrays_free()
|
expand
|
diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index cda52e05ef..0bf68ea45c 100644 --- a/libavcodec/hevc/hevcdec.c +++ b/libavcodec/hevc/hevcdec.c @@ -3006,7 +3006,11 @@ static int hevc_frame_start(HEVCContext *s) if (ret < 0) goto fail; - if (!s->avctx->hwaccel) + if (s->avctx->hwaccel) { + ret = FF_HW_CALL(s->avctx, start_frame, NULL, 0); + if (ret < 0) + goto fail; + } else ff_thread_finish_setup(s->avctx); return 0; @@ -3148,12 +3152,6 @@ static int decode_nal_unit(HEVCContext *s, const H2645NAL *nal) } } - if (s->sh.first_slice_in_pic_flag && s->avctx->hwaccel) { - ret = FF_HW_CALL(s->avctx, start_frame, NULL, 0); - if (ret < 0) - goto fail; - } - if (s->avctx->hwaccel) { ret = FF_HW_CALL(s->avctx, decode_slice, nal->raw_data, nal->raw_size); if (ret < 0)