Message ID | 20240607130135.9088-18-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 d9csp1009847vqo; Fri, 7 Jun 2024 06:06:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXYhcqH0SmTuN2jpz9ltGwCFo8MH3al1wR6uxyCbfAXUwV63alyom/N4m80nqobrHq+Mkv9Z9hfJkYUXdKaDf7SpdQzfwk/i2h26w== X-Google-Smtp-Source: AGHT+IE1sw+BMp6/QfP+mr8TKSjkXFTb+HOwl1emjNnF3n0PA8G4zLIL04e841CD61ntl719FrU6 X-Received: by 2002:a17:906:a45:b0:a62:cf3b:77af with SMTP id a640c23a62f3a-a6cdaa0f8dcmr157280566b.52.1717765561790; Fri, 07 Jun 2024 06:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717765561; cv=none; d=google.com; s=arc-20160816; b=CjsNRlXCFBHlmjJJr3tPm4PHRfvZk9p8FnPcUO932OdZDApBMvB6ORwTNfx/jrViEm ELcR7Y8JovKewLbX3ff7uWI80YAX3Fut3lVd3VQTyA32xNRuWdlgH/VjyL+wCns1r9ri TcBxB5xgm0/nRwYR5ijYUpmhSS/iiO/fHIJk/xY0+3umVLrLBkl3sLDAhfZma3fn/A/4 LM9hIDyU8qKeLGFSs7ekKRlFJrSt6KyU5A4+3HE2wX1tV5Bd+v9TzzV5neoR7/PAIDv5 +7Aw6bbodpJCtoBt5YsnXarr98j7YAJOqToMzqYTFof0+MScHoRcghKkEv9zKKu6ypSa b+WA== 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=AHm8CsQBlsXjtxOu0Qdw6fh+YIAYKSLzAC0wpi4EkYo=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=SvYkRLjUF9XjFclzQmlBFtq4dNYA2Z18MzCdCqmmgVqKDLtr3Wys2MwD/P2Ay8SUyp WPQZbmvYIEg240mFaV7jVFntWd6DaiI68ErYQepG6hTvVWtJlYKQKPBn47MtevuYzp+e 1CpK+/4ASeTCNK6IrV1tiVJmi8fVFz0G/lIw/RWkSy/utsQPiMOWCPXhIwSpDRAonovA 0oAsBy6qa4gvhU3XPxz0mseJVvllAUU5u1EbPf9aPl93iWzyxlnr4tJ0xSzNqiXiqug/ N5FQx8Ve/wAG9J3AHlNCkwCxRhefOD/I6JTt4GBEq0Sca/UbzC8k5fN+Sud6C/Bw/WkN RubA==; 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=hT9l5yny; 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 a640c23a62f3a-a6c80725051si186737066b.700.2024.06.07.06.06.00; Fri, 07 Jun 2024 06:06:01 -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=hT9l5yny; 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 D4F1868D800; Fri, 7 Jun 2024 16:04:05 +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 65FA368D763 for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 16:03:50 +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=hT9l5yny; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id D2D9E4DEC for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 15:03:47 +0200 (CEST) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id a1dizetQ7SF2 for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 15:03:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1717765422; bh=FaAK4XC/6gFRponO31vY86ahc+x6hCCK6Vq6npRSv/o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hT9l5yny1n/wBTXiZI7gsjFudT2vkoA+fVudhlLTEsDXCeWA3AdXpql0mWtZi12pR hEkVH8lISyS2Zon1pOTJW1U8t+0oqBeCI/7Qmu4+ySP+SPJLGtP9r81JaYv4PD5fCv WnalUnEoWmIU9BstO+7f9JVpTece7X19H6cSgORZHsTWzie0lCHrekt3AFOzQdKQ+8 ba3xqWt/EoIAWMSn653ZfvXV2tTX3smLNlRP1I20jlTVrKl6dCceFSc/OuSsaGCU0F A4xF9h3UPX7eDvbJJu4vgv/IQeXGQaNN50ZHmeNaunZKiaAGTtEZ5DLB34fWVtEj2F srvxwTCIwWdIA== 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 063D84DF3 for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 15:03:41 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 2BCBD3A0FB4 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:14 +0200 Message-ID: <20240607130135.9088-18-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 18/39] lavc/hevcdec: only call export_stream_params_from_sei() once per frame 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: 1cTqrFtquSPo |
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 dd3c188418..bf6e93ba1b 100644 --- a/libavcodec/hevc/hevcdec.c +++ b/libavcodec/hevc/hevcdec.c @@ -648,10 +648,6 @@ static int hls_slice_header(HEVCContext *s, GetBitContext *gb) s->max_ra = INT_MAX; } - ret = export_stream_params_from_sei(s); - if (ret < 0) - return ret; - sh->dependent_slice_segment_flag = 0; if (!sh->first_slice_in_pic_flag) { int slice_address_length; @@ -2965,6 +2961,10 @@ static int hevc_frame_start(HEVCContext *s) !(s->avctx->export_side_data & AV_CODEC_EXPORT_DATA_FILM_GRAIN) && !s->avctx->hwaccel; + ret = export_stream_params_from_sei(s); + if (ret < 0) + return ret; + ret = set_side_data(s); if (ret < 0) goto fail;