From patchwork Sat Nov 19 02:59:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 39336 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:999a:b0:a4:2148:650a with SMTP id ve26csp773167pzb; Fri, 18 Nov 2022 19:00:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf5UIDTACzPPrr3r7bVdFlzKAhORYBFIJbGI5vvTG6SWtTw1ZGfoH2sZMiQzmiNiaHXXRmAk X-Received: by 2002:a17:906:ccd0:b0:7ad:db82:d073 with SMTP id ot16-20020a170906ccd000b007addb82d073mr8237118ejb.480.1668826802451; Fri, 18 Nov 2022 19:00:02 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id t13-20020a170906178d00b007aeef4dd9f3si3640241eje.305.2022.11.18.19.00.02; Fri, 18 Nov 2022 19:00:02 -0800 (PST) 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=i8wCJXfW; 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 07E7C68BA43; Sat, 19 Nov 2022 04:59:59 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05olkn2057.outbound.protection.outlook.com [40.92.89.57]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3426668BA82 for ; Sat, 19 Nov 2022 04:59:52 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XFG+cE17St2Vy7WfjqRabMi+wqzB1T9h1Ep0ahEi5v3BmrgHxcFIYtOv3EabNKEPiUs83+wAaCfb23zqkzkm1SiWa1tV46H8vFGzCa8sRwPFbGHbbfGCYZRQo2X3fBWHkZMlQGWa5dXR1M/oMcuzG5RALah8XoLVrEPruYCpRhG9sdVyYg/ocLGVtqVUctXKf7QJYcJfC7tFytyytebGVryEYXk1VXxza1L+kDFXyRv+tINT2ZoDJSXeeOVMJ8uZGXaJw5RdWT4HaLQRxXHe+u4+vB0OTwweoMGjCWJTZoZM+8wW2z+GEK4uVwYsL6VFXckrwiuuYHVE0y9Hq6Eybw== 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=o4FzRIJ9neZZzt3JsNaBfynm0yr9uwhcCZclK4DEWDE=; b=gZM6FOcdh45hqmGUl+eV30U0hsPqQ8UWpnhYBHmqzdKoW34dTOcIb8MVzo78w5yu8qOqUdNt/YQQJycmr5YtdDXMeKsN3Bc/l7OJg230ivTTJfbng+YWjF8944A7Kj/F0joVUk2+0teDkW7KFE4RzcLMcOOJj3vpelXa25k6EVKDJOZompWzU6A+J0y7qfmFJvpQSSOUEKofL2rGvT4RdBoHiUZ9r0pVyE6i6Mjj+LGhHZjh7XBnYwFIVRUUEcuDWfRNQ8qqucH5bKxm3tTa9p74/4kcdWkE/MZdpW6ZgtpofqS0YNzdIhuKmpF7JMeVMGMNoaM1BsMga6/4cY6Vig== 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=o4FzRIJ9neZZzt3JsNaBfynm0yr9uwhcCZclK4DEWDE=; b=i8wCJXfWK3YmWtfkAdDR0EUFrCeR91h+chX+agKVET3uUo9+XLTx1btvKlaNID9MXz1Rvm1MCyvFqkCxOmEcv9ReyibbSFkuC4kNlYlt7BFKkhDrV9YdHqNG+WYge5t/At6KX2cV3TtIIaUa5GJGPjkxFWwIwrckJecUo/kqG/gNFo5xlpQ3TNHNuNg7WLW+DS7S/RKnCoDwCCbWMQUgAwJheipedGYxJXygXX/eMiKeKeLXER2mvR0+U1ftWjhti5yMx5z0draX34xnwBdly1nTSSGXT936O6BkXsrzRiqAIZ7lNRGNlotRSIge8Q4V0462HcM3S8BhEEFz0uisxw== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by DU2P250MB0127.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:270::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.9; Sat, 19 Nov 2022 02:59:51 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::5188:7559:45ea:5f52]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::5188:7559:45ea:5f52%5]) with mapi id 15.20.5813.018; Sat, 19 Nov 2022 02:59:51 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 19 Nov 2022 03:59:51 +0100 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [qUUfxOdPfc3cGzdutYXyQ2QvL0Vonoz83SBjBCFoRu0=] X-ClientProxiedBy: FR2P281CA0044.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:92::18) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20221119025955.1758795-2-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|DU2P250MB0127:EE_ X-MS-Office365-Filtering-Correlation-Id: e9490086-6f13-497d-25e3-08dac9da203d X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmpdHtR81+IA7gDwjaoMToLsc5QXJUrRZAHXtpOYmDVIrNuK4DTasS8WQi5LOKjLrsDdP9xzngBJC+dGb+PqbJGhm+ZPjgY7h5xmhPJXppLsc93N++8QdMqBdVV/cD89ei6c98MQoOEVhBZPLoqp6tKPipy6eGcVu83GAG5ukuYXTp00cJ2ZXoLxjyIyGMVlhYW2+jpzI+GM7AcVGgpR8yaaGOhv2QNofGqlZnJ0FPZRLxF/5vrkBfUtsmX7WBEzlXjr/3BJC3HZVE7dRR6pKLvcirQvpOBl/67iheTA4/JjOABbYg+XyuV3o3T53/WamVUDH4x7ZLIU90+Lf+CRzFfgLV6vb+JGUuD6++6niBfxKCZtTC75FXvr5fCwD3VutMopOb8uD8Yj4wjMPCp6m73v/MnOJ2QxXkQnerVpiMlYOFXsJ304QWfX17xlw03tKFHxMhkOIBgpW3iYpfoOmVXPoib0Hrgv5HCQa6m8Tc4mp3mR96I4ROZko6JC26gTTah9cI3fUE1Qq6Hl5TlW7dj1wKUJFp5yamX+fkgDZL6gwv34RFmCmePJ13FAc2ZcWzU+/59vKwjvfZH0dVafDRwbN9hixfa8ynw7LeA3ito3vm31hDA/r+nSujRpI7UJcjzhVRwto+iI3bKXU84cA4QM30atKr8hCgfRzxjyVfOK4kqPsG0wPrXKCZZhV3pzz6f3BFNV1O7yDNrm/mTFCthZy5ZOJUj/X03aHp5xiZryvljgGhoRHqsacjbRtEDCwSU= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Nwv0XD7wP4Y9FvaOkRZVd5XZtZBlycKdQZEiFul7IBBpocNmoZXGZ3ZRnAq9HKyw+XPeU8+cLhQk1g2lMns0WhtU6cXXF18ORznGKRKvZxmKe03SLq0v39X14G5NQhVdFZ4GeXEfekAQVZvDKPdXG8lZ1VX2R0oqkb278JCUTCRijNlGY1sPcDWeac86VrEfffsciNi90uLPu/RJ5xWQvI22/MZ7ozL0a1lmP+P95P8VErmXemkBnFItBR8siRq6JW87X9/6CJad7S13D0KKXxmOCGLNa5ob3ZwBaN7SXEd6dBgDN2YQfoK4POSU49ilCHM0Apwvl1lCcIKzKTWrb5Wp1nVrPIq7QPIj9pCCfH+jw9kRPL6+vR7krcRG8n1+NJdSJAca2IMzceLTUQ2p5M2VQIiJa+5Q8NUx4HmAClDuxMfv7v7cvaGgLf75qdVcLH5EREqmLOeyEBbkmDB7YURnrU4A+lUJPkZabTQ/sZRe2XSvQn2bWvv02tL/e7CrSLS3CEo3IJd2FF7gtSx1sy+ftg/RzZCGH5uV9X0jDDNHhKtBG4gUWsiLncFIPOTbXGFA3EuJnTbjTr089LkbiLprtAcEopmqysd302ifa8z9dOvawegFgnUIcguDbQgHm6eE5grXpYhtqD+it31+HA== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YaTnmmYtjCnqdb5+vUNUiyzReP5WMT0uEYGqg7xs7tXQQmw8Ncdon9E5ZR0SN1tCXu/iAnBLXDO4VzRWgDoiomssASh05y545fXksY9I548MgusmV8K5rs4AopAGQU3m0OzA0u749sEf6JwgYvgkuowygHB5Vq8+nssphKRfQo3881L0ipJup8hThrowMoUS8gKznukOWcn8eWMpakTXAhH2MQysIX9CS7lxaoeR8Fwtfdyh9ntetBehhmpNFxk28gqvxElPILv6KmVmNai3GbhkbF/WSWycWeGIsAxM7Cd4mQDN2x03bEIBz+spd1f3FXoclPZ0hvNGYMzrPw7Dcm+peVLmUeKNMJkepENkldBKZE13FQKJh1IN7938/qvKH67feVbrEhJ4nTJkOwAAO8kDxeIyWktquuYp0dWFBUm08OlamQ/VpDOIe9DT91qPiZrBXAS1xj+AC0J6Vw+nbzt2uSCTRhc98YZFlLwJKbaHNVbTrZW8ZdEGg6CH/8WLZHX4g36bj1el2XA27lcd4B/KnBVw0VYXNbuawfARnf6Zx+jrifXEkbL5HDCTLcXIMh5f08XR7XtGI1cOfDXC0w+3m5UYK4riBhEcNkRKpXp21afluLjq9mzwRTjYC1eRJwlxk8adOdpCyFtY+dRpZREkgvDX75ofTm80H7dDHVqqJzGzKhqMKA173HGu0osuJZ8b9oChNYuYIdksNW02/UzT3WcWK7197lOzMoqp0o+Vj6SMAu6WK3y3up2wHNta8PdnEJ8AoO0nkgsESFg4Sjpr18omz6ybyKNnkiIOf6bUaBPea8n/77atOOogaORRYxOJt9hCX9vo+D0rbxm6iWReeaCfjATgtQxdzCdIyMDIzACYZPNpd2yx1qd6LCJyfpxNjJipNcUUdVSaXxz2ZmeMhPxz2L7FIIUZdUd0GGvaWPSBID5j//oF3hCtb2IbKUIfr88NXHZBZe8XYXwASGvNdCPT5vQJDE3dwMLDCvjvdc72gDdTBYSOrThVFqO7OTSOBANs7yib8dXFaHO6Q9s92Y5ppTRpIqyEpP5CNw687JyWoD7VZB24USIEvC3lmX74qqUlTw96dFviZ/XX9PrIIjIK1KiyoNvxVe1V9HdqKQVBiSqQ0n5NpvRpMd5NIZtLrzJ4wpyqUkpUVF2qFVYmtIlpYOVykyyps1oxV2KZCrYu+6g/ZXqwYCsMOzKj/2nibqLTiQThOojx/feEmot9up50KxKfs59lE9eEsw6++x7295rZ4po6lIFsS+xIla8ZPOA3svOtu2vDju7amd7Qv/iMaGXSxE4nY7bO+Ak= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e9490086-6f13-497d-25e3-08dac9da203d X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Nov 2022 02:59:50.9621 (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: DU2P250MB0127 Subject: [FFmpeg-devel] [PATCH 3/7] avcodec/flashsvenc: Remove unused buffer 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 Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: PMOJT5gMOeTd Signed-off-by: Andreas Rheinhardt --- libavcodec/flashsvenc.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c index 9d065bb92d..0618b2aa1b 100644 --- a/libavcodec/flashsvenc.c +++ b/libavcodec/flashsvenc.c @@ -60,7 +60,6 @@ typedef struct FlashSVContext { uint8_t *previous_frame; int image_width, image_height; int block_width, block_height; - uint8_t *encbuffer; int block_size; int last_key_frame; uint8_t tmpblock[3 * 256 * 256]; @@ -91,7 +90,6 @@ static av_cold int flashsv_encode_end(AVCodecContext *avctx) { FlashSVContext *s = avctx->priv_data; - av_freep(&s->encbuffer); av_freep(&s->previous_frame); return 0; @@ -114,13 +112,6 @@ static av_cold int flashsv_encode_init(AVCodecContext *avctx) s->image_width = avctx->width; s->image_height = avctx->height; - s->encbuffer = av_mallocz(s->image_width * s->image_height * 3); - - if (!s->encbuffer) { - av_log(avctx, AV_LOG_ERROR, "Memory allocation failed.\n"); - return AVERROR(ENOMEM); - } - return 0; }