Message ID | GV1P250MB07379AC265DD7CF39BB4D6148FE02@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:1706:b0:1af:cdee:28c5 with SMTP id nv6csp298021pzb; Sat, 11 May 2024 13:52:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUJLSCXqo2+qVB2QcMYwJECr3RdvonT1edSILanpr5CW5cHc+Z5HXse3I3359W3Zp4z2m42NJqo8MZ4rvQgkOBUMRgihj5KNvoypw== X-Google-Smtp-Source: AGHT+IEBKQR22uJEerb/wOPH3yPnzv92e2Nb1offAprhlG6u7Yd0ktSl2mQhgm4hYrbZzWpWezsn X-Received: by 2002:ac2:424b:0:b0:51b:1e76:4ea9 with SMTP id 2adb3069b0e04-5220fc6e5d3mr5184700e87.4.1715460756058; Sat, 11 May 2024 13:52:36 -0700 (PDT) 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-a5a17c2c0e5si367032266b.959.2024.05.11.13.52.35; Sat, 11 May 2024 13:52:36 -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=@outlook.com header.s=selector1 header.b=j258G1ZP; arc=fail (body hash mismatch); 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C08AF68D5BE; Sat, 11 May 2024 23:52:20 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04olkn2073.outbound.protection.outlook.com [40.92.74.73]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E22B168D539 for <ffmpeg-devel@ffmpeg.org>; Sat, 11 May 2024 23:52:17 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mw6x/ncRBzkLTtibp8oH26geDInqNlW9DjTzeZaEevUTyg85Fwisw+PZnyhjbt1mqbaBCgUQYWeMsx/bPRlL8AbmUEWebfS5d6rcJBKRQ6KqKW4XYK//icwF1W7OXPl9GZfTBs522H2+YU2dVQll9eQ0JvNGpQscyOoamx+pb5XaCE53X5Pf2muiQ5zokT9f04f8Lmi5QfYvwEP+fXlAQXtZrjdnfWJ6nnZDAFgr3TgTQt211bZXbDVAn3OpP1NdObPnIuerJ9NzFzPGJrRy0ohuK9gx/mNdVNvPr9RG7KfjfmUOcvfH6DpUSp/kDiR3/JSHCwcD8duCNtw00vRHnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oAWBP7Lhz3Ne//l3Gq4fYxozoWjTU0yd6fBmAiYiUGY=; b=LEsvLk7d/tILuk7hDb4K5He2QVnHasdLAfvf/xZeMOd2dA0iFMkuKtIFiiEz0yKPyzSisoR6ADN6pAIYHU3g+AvEL3ZT9utLSwfGWQ14Hl5TtcbbM+iJVmJp7jqc71PeN8ExZg3dPjhND+gse+XccC0TGfWYhI7PlYv2dbUs1tgUPyUDNHgr2NxLMuQsPU9i0j2fIv2xbepsuYlN3M+zZlnO9Yslcw2ATyioxAqDgW6jYiLJHDDx0mr594tCk18LtTIdharZv9+q34aG3I9VZQP1QwarmQxwbYYsO7PUved6DxxwFBWaATLS15h/GxTQeAtUFoLhpIZBsWcomsTR4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oAWBP7Lhz3Ne//l3Gq4fYxozoWjTU0yd6fBmAiYiUGY=; b=j258G1ZPaKk7qm3JUXPoTgYaAnTnnXUnvcXZfIDNGPaY0zQh8M3vHw1F7lw5/ad1OPGPQRZCb/i7gZx8JLF+enSqRXfTm8dJ1Fi1GsbrR6IKbZ5bZiz5PJv6kJ5p8n3bbagXvMANgU5HlCGAIws0vc75/1erlGnyLz34tYru39HxyUD5gAYWnhZRMyYnXeoCbx6f00E4iS5hyIca1o3Y8KgBRPR09/GBYm77Vko6iz9Em0cLWAtl1Spvd3n5dzv5P2XUws4FtOaUaaKLeZZXuQP9jDjihYudUHoNAEnmB1wKrluZSGyj2999wMnjqbb75mAKFAOVSWPV8M7CHzAo0A== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by DB9P250MB0449.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:325::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.51; Sat, 11 May 2024 20:52:11 +0000 Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::d6a1:e3af:a5f1:b614]) by GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::d6a1:e3af:a5f1:b614%7]) with mapi id 15.20.7544.052; Sat, 11 May 2024 20:52:11 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 May 2024 22:50:29 +0200 Message-ID: <GV1P250MB07379AC265DD7CF39BB4D6148FE02@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.40.1 In-Reply-To: <AS8P250MB074471DDEA29072B2586F0EF8FE02@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> References: <AS8P250MB074471DDEA29072B2586F0EF8FE02@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> X-TMN: [U28PosedRFWO5bhI8oiexGqgERsq+LBsILoC7gAMoLc=] X-ClientProxiedBy: ZR0P278CA0172.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:45::6) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240511205135.2411886-4-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|DB9P250MB0449:EE_ X-MS-Office365-Filtering-Correlation-Id: 4416c4ea-bdbe-4b48-c2c5-08dc71fc3a9c X-Microsoft-Antispam: BCL:0; ARA:14566002|461199019|3412199016|440099019|1710799017; X-Microsoft-Antispam-Message-Info: /PtEFMWL9ayEgpRWv5/UebqfLgiOH1uHlomne1zrGJeh+exce3xHLRuB9EzX1ZpUMNmdGmJ5/48nWS9DvTWse5fG16+mnCZUyKURzA9nRhGywKIg/g9mDNUfcJo+601Ah1gtiunvRNQsLArlRu2vKQsK/fVf4LmX7hKX2N9QQNGkw1Qtpl7psd9ZG8KG4aqeelW+eQQbcGiPw1tlUvlx9ci9vnsAMsksU9UI0uzd8U5BrF2BGj61m6s10oadSC85M2iTbYeRpXaRpjhyaagrR4+yYXd2c/f5jSh3LEMQiy/noSvO1Z7JEbi0qW3oFRAlNzpUvR8a1dRF7nUphN/s8RzZvGdwv7+8Z4hhtUQWJjQch+lYSUQHFSdkfeUtpssa9IS+9wj2hvCD1TXA/fh2ZtiQLo00NBlhpbWmUcG4nxMUMRFlv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XkcsCRQwEb/xA7IW2HwmMZLjDyCliBztE3I7B1VKcwiKqldUUqQYJNXtDDmzDY0gWPMg4oUyTg3EA4PKKgeqFICX4aMcIk6dz79PwnPeWDAIEtQSmp/OZuKRoEYyls9QpKdrN+0m4OISunhh1meRYpSDCGWZo3t7Jw9qsBdx7HF2aMoSk5nEmM7jAEHvy6/WXOjOzPryFqYRpPk/qEj4Xe+0YpA+HyPk57d6IFkVpuOsJ2fNGQM8H2v5IxB+3cVV/2tcnAQYh1xozuD8CQdDFv2Y8LjbNI1rMAnF45Vxxgssmvt9n8YPZA3WOT+O6VKokYiJh/+PfF7j2iMTor5YOgXjTqWOgTqV0B40sh6vbxSBjDSLrmJKXJ9pQ8oxlDgx17u8BmSGNiAfBRG1ll0f1LcPbXQiy3+DByCU35r6OETRNdQqlxL5Kh8YA5P0nX19GT3GK9kkDFt43E+dedLkQhBkxyBA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4416c4ea-bdbe-4b48-c2c5-08dc71fc3a9c X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2024 20:52:11.1762 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9P250MB0449 Subject: [FFmpeg-devel] [PATCH v2 05/71] avcodec/ratecontrol: Avoid padding in RateControlEntry 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> Cc: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> 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: pjJw5q+5zqLd |
Series |
[FFmpeg-devel,v2,01/71] avcodec/ratecontrol: Fix double free on error
|
expand
|
diff --git a/libavcodec/ratecontrol.h b/libavcodec/ratecontrol.h index 1b49889f75..4d71a181b5 100644 --- a/libavcodec/ratecontrol.h +++ b/libavcodec/ratecontrol.h @@ -39,6 +39,9 @@ typedef struct Predictor{ typedef struct RateControlEntry{ int pict_type; float qscale; + int i_count; + int f_code; + int b_code; int mv_bits; int i_tex_bits; int p_tex_bits; @@ -49,9 +52,6 @@ typedef struct RateControlEntry{ float new_qscale; int64_t mc_mb_var_sum; int64_t mb_var_sum; - int i_count; - int f_code; - int b_code; }RateControlEntry; /**
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/ratecontrol.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)