From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 1C8B54B804 for ; Sat, 25 Oct 2025 20:41:03 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'NWFIekVKq+lphRX71z+wdA7yt0f1sINAcDTrzdUak0c=', expected b'cVX5BB5fBO0vyBbc4THqrkAbEdxrO1+2TDkXIWoEMYA=')) header.d=ffmpeg.org header.i=@ffmpeg.org header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1761424850; h=mime-version : to : date : message-id : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=NWFIekVKq+lphRX71z+wdA7yt0f1sINAcDTrzdUak0c=; b=p0PXCTT0mAXyZzqmCdQhOPDUJIUk5zT89TTsOm0v3lmMv8tx/2KVVcqCykbVucJt+oZKr m/2titkUkinfx3EnxBvuzBW0aRPS/CVCpZdKDIfIGZskXzy/ksS+P6co8AYQUgCIG7RTFge pm01j8W3Ygbl+VVMcge0BMkTWbrtvt23OxNOT+NILjCQX1XxMYbn1p++k5/Mv3lrNqA0Dex QKrcxz/kv3AflNVvUCKyFP6/acDlaP9DrrzHAiMx+nxe+0GDv/5Fh2dZKTsSZ0NNnmwCMRT ubQP3atwHjjI4RpEUb9GjGhrYB6waDvDNv5J6JXCImTOYNS1ZGXA1kSxXurQ== Received: from [172.19.0.2] (unknown [172.19.0.2]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 94E6368F4D0; Sat, 25 Oct 2025 23:40:50 +0300 (EEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1761424849; b=U+yT6bOdHGLC87l3Y2iLdjg6XjW+1E2WtHG7wxrsS6hPtSkJsEaH+aesgaXZqvFw2nqSg 0Z/yLW5H1HMLEWBy+tuiHkVykk3LKTUjtq4AnNl1+sIxr+5X3R6bAAtDD97uhheU7+Dnr4w wITCgvuTo4v+svzGNoMH7vS4T1V14uvlI9ebPI0Z8p5v5qafdASiw9HHrTgM/t0hoYT9WTx iMgVd0MO5uLdKntQiiDtdSToUYDjvXJmFJWT9TWEIDaaN+25XLioFpAFO11XDbg1sOBEHsN uNn2C67vxuSzbhzN0VF1vSwT+qh6RDcke8DOV09EZnwWy7b/OJrNNi7W4Yfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1761424849; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=8s4MycBwvOrjI5Q+n2aJ3F2mw6VYQxz1id6mQEDqR70=; b=lA6lSOOe79vhuFGlkDHpLJF4++nwlQnxmWWNGWKchlhR+571JgKThRg15O6Q+rQAnbq+E DLVqxGJP81s1grsiar0VP8dTbD3Dy8/IA8eCNTOYnqZYgseESqFtwFlWIBLRiFkbchVS2uX WxdXzqSRui11hEpaC+qOlW4/vj8Jl7IxrtKyrlcFw3COBhwW65XMDnhnneDPBrK2bj42QBF mw/hmOPxapqAKDtH/6Nq7+MoxG21HgzAi7QQ96ttkIC/cnxR6O30386msd0/VBn9RduBTkP GXTAucsenOBdk2sM+e2cdywgIZS7lXlbeTljWxkcRIVJ0tScyOEmtH69DCtg== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none; dmarc=pass header.from=ffmpeg.org policy.dmarc=quarantine Authentication-Results: ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=ffmpeg.org policy.dmarc=quarantine DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1761424842; h=content-type : mime-version : content-transfer-encoding : from : to : reply-to : subject : date : from; bh=cVX5BB5fBO0vyBbc4THqrkAbEdxrO1+2TDkXIWoEMYA=; b=zjh0jAIYXPKRaHOmU2eivl/lJRvGf5YgDH/523YU5jBecs3hfdDAkKZo187M9UU+XHORM ycWq3IN1+ldj1SpnjDxbWfppBq0IM/89DQl2ZBHSSFatWYu/iOLAIcivsa9aS9gvLlO8VHi mjWIqrC95bhaD72mmUPX+zeXGsRdO4lIcncWjvkkSBw4Pbp1csmCfk45NvxjkYMSkoY/9qt FM68Y3RNKjUde6fFEcW+44jlJHdz4G+IjDKRMm26E+WDBh3Ti99jQSe8wJzKhLWz8rLs1J1 XlhdfY3LCYJCS1s1UgrvkiJ5NujNbu+fVQMl0PIIZWxM0hJjcKAMYFXhGFhg== Received: from 547bf0a948a1 (code.ffmpeg.org [188.245.149.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id EAE5568027B for ; Sat, 25 Oct 2025 23:40:41 +0300 (EEST) MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Date: Sat, 25 Oct 2025 20:40:41 -0000 Message-ID: <176142484212.25.2997517567846384313@7d278768979e> Message-ID-Hash: 4WTXVJRAJLOLLQMO5C3KS7EQVHRG6BTI X-Message-ID-Hash: 4WTXVJRAJLOLLQMO5C3KS7EQVHRG6BTI X-MailFrom: code@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH] avcodec/proresdec: Remove unused hwaccel_last_picture_private (PR #20753) List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: mkver via ffmpeg-devel Cc: mkver Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: PR #20753 opened by mkver URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20753 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20753.patch ProRes is an intra-only codec. Copied from FFV1? >>From d01608e0222a04b5743446f200284d486524b355 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 25 Oct 2025 22:27:36 +0200 Subject: [PATCH] avcodec/proresdec: Remove unused hwaccel_last_picture_private ProRes is an intra-only codec. Signed-off-by: Andreas Rheinhardt --- libavcodec/proresdec.c | 6 ++---- libavcodec/proresdec.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/libavcodec/proresdec.c b/libavcodec/proresdec.c index 814074f9d7..40c15a0c85 100644 --- a/libavcodec/proresdec.c +++ b/libavcodec/proresdec.c @@ -788,8 +788,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame, if ((ret = ff_thread_get_buffer(avctx, frame, 0)) < 0) return ret; - av_refstruct_unref(&ctx->hwaccel_last_picture_private); - FFSWAP(void *, ctx->hwaccel_picture_private, ctx->hwaccel_last_picture_private); + av_refstruct_unref(&ctx->hwaccel_picture_private); if ((ret = ff_hwaccel_frame_priv_alloc(avctx, &ctx->hwaccel_picture_private)) < 0) return ret; @@ -832,7 +831,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame, goto decode_picture; } - av_refstruct_unref(&ctx->hwaccel_last_picture_private); + av_refstruct_unref(&ctx->hwaccel_picture_private); *got_frame = 1; @@ -845,7 +844,6 @@ static av_cold int decode_close(AVCodecContext *avctx) av_freep(&ctx->slices); av_refstruct_unref(&ctx->hwaccel_picture_private); - av_refstruct_unref(&ctx->hwaccel_last_picture_private); return 0; } diff --git a/libavcodec/proresdec.h b/libavcodec/proresdec.h index d33eab149b..965fc85b7a 100644 --- a/libavcodec/proresdec.h +++ b/libavcodec/proresdec.h @@ -44,7 +44,7 @@ typedef struct { BlockDSPContext bdsp; ProresDSPContext prodsp; AVFrame *frame; - void *hwaccel_picture_private, *hwaccel_last_picture_private; + void *hwaccel_picture_private; int frame_type; ///< 0 = progressive, 1 = tff, 2 = bff uint8_t qmat_luma[64]; uint8_t qmat_chroma[64]; -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org