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 40F7E45AE8 for ; Sun, 16 Apr 2023 20:38:27 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 02CFD68BB37; Sun, 16 Apr 2023 23:38:25 +0300 (EEST) Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 25D2B689DEF for ; Sun, 16 Apr 2023 23:38:18 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id C947C2404EE for ; Sun, 16 Apr 2023 22:38:17 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id x4bvE5-aSV6I for ; Sun, 16 Apr 2023 22:38:17 +0200 (CEST) Received: from lain.khirnov.net (lain.khirnov.net [IPv6:2001:67c:1138:4306::3]) (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 "lain.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id 17F522404EC for ; Sun, 16 Apr 2023 22:38:17 +0200 (CEST) Received: by lain.khirnov.net (Postfix, from userid 1000) id F1C581601B2; Sun, 16 Apr 2023 22:38:16 +0200 (CEST) From: Anton Khirnov To: Ffmpeg Devel In-Reply-To: References: Mail-Followup-To: Ffmpeg Devel Date: Sun, 16 Apr 2023 22:38:16 +0200 Message-ID: <168167749696.3843.15600454333051309232@lain.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH 31/92] Vulkan patchset part 1 - common code changes 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: Quoting Lynne (2023-03-14 07:33:43) > From 61f412eea3fbcb1e2a8625796760c0e24fa3fb83 Mon Sep 17 00:00:00 2001 > From: Lynne > Date: Tue, 17 Jan 2023 05:01:45 +0100 > Subject: [PATCH 27/92] h264dec: add hwaccel_params_buf > > diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c > index 0aee724c0d..6559593195 100644 > --- a/libavcodec/h264dec.c > +++ b/libavcodec/h264dec.c > @@ -341,6 +341,7 @@ static av_cold int h264_decode_end(AVCodecContext *avctx) > H264Context *h = avctx->priv_data; > int i; > > + av_buffer_unref(&h->hwaccel_params_buf); > ff_h264_remove_all_refs(h); > ff_h264_free_tables(h); > > @@ -470,6 +471,7 @@ static void h264_decode_flush(AVCodecContext *avctx) > > ff_h264_flush_change(h); > ff_h264_sei_uninit(&h->sei); > + av_buffer_unref(&h->hwaccel_params_buf); > > for (i = 0; i < H264_MAX_PICTURE_COUNT; i++) > ff_h264_unref_picture(h, &h->DPB[i]); > @@ -669,6 +671,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size) > avpriv_request_sample(avctx, "data partitioning"); > break; > case H264_NAL_SEI: > + av_buffer_unref(&h->hwaccel_params_buf); > if (h->setup_finished) { > avpriv_request_sample(avctx, "Late SEI"); > break; > @@ -682,6 +685,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size) > break; > case H264_NAL_SPS: { > GetBitContext tmp_gb = nal->gb; > + av_buffer_unref(&h->hwaccel_params_buf); > if (avctx->hwaccel && avctx->hwaccel->decode_params) { > ret = avctx->hwaccel->decode_params(avctx, > nal->type, Removed on SEI and SPS? That seems bizarre and highly arbitrary. Why specifically those two? -- Anton Khirnov _______________________________________________ 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".