Message ID | AS8P250MB07442482CC6B06A6DC6286F48F089@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM |
---|---|
State | Superseded |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:999a:b0:a4:2148:650a with SMTP id ve26csp773467pzb; Fri, 18 Nov 2022 19:00:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf5qPQtN2j4zIXrdhTO4DeI/d48TUvj6dW7MRiM/Hizxy7uIFBaRD7JyB9cvepDuhwkuumAv X-Received: by 2002:a17:906:a2d9:b0:7ad:d250:b8fb with SMTP id by25-20020a170906a2d900b007add250b8fbmr7877904ejb.739.1668826836917; Fri, 18 Nov 2022 19:00:36 -0800 (PST) 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 q1-20020a056402248100b0046178c62b6asi4438793eda.477.2022.11.18.19.00.36; Fri, 18 Nov 2022 19:00:36 -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=a5XLQhw+; 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 2AD8268BC72; Sat, 19 Nov 2022 05:00:11 +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 B805768BBF2 for <ffmpeg-devel@ffmpeg.org>; Sat, 19 Nov 2022 05:00:07 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FNkxdtqd3x0qRoi369P/u1LKfP6XwPqUDpRDDPxRK2Ev3qHcTcEZOKI59GPKXXZgk3KgzUB97HVwdfpxJREgaGBcatdeiD0UQIVt4LBcxis/OgsONodWkshp/ls71nTUAmOgPuKJ0LxLSIjU2DSMwIOUVCizn2INPPAizIyB0tTR3KGzvTv+hBKw/v9DsUJlmIGdS0m/yHzhvO19pWaptu17m64mRFdpB9TFr/uYKpHJfY+m56hU+226NTsS4FNiIw0j8awldsM/VqOOfCF/SZToVKHSTvIJ6vt+i0b6lz7ZMyR9cpbHoKrX5u6GQ2pvXEz/zmXY3metQLuRiOkUsQ== 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=zpazKE0RPKJ2lndk2LmyJgNPriQDTC2olpzjuLTi4Nk=; b=PLTvMAE+14fD7qloMo9tlBK+1fbxHqYpFJ9wOntLybhcm3SLVWebBN/vV5gAv2bS6TYywa3ZdDvBpB/4OX5HYofH0cHtLV+OfwMJEBXQQu++V+BA4QL1LMVdqCRGcwUxfhhF/phPYRjGydQbLHJNEswQ2HbKaCh6LCgXFMfdzRfGFs4gpFrhBjmA24dtzSKSFGU8Qo9lgiw5oZet+e8vtLYImiVQqIP41a/yPKX+b0S4AozOuscUjTGHEvsgsbizxfP5n6uzmpVYAFRnEX//AeHZsWAUEtJASHoA4nJgkrnO2sMDneiS6phx1h3J6yb0ie47FGZKQVIfjK1qjdjPXg== 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=zpazKE0RPKJ2lndk2LmyJgNPriQDTC2olpzjuLTi4Nk=; b=a5XLQhw+n+IUWmzPdlvZwxaUnSqBpksBa1qarGFAk0eunIVtEXHDCg9Xol9jwZaf31sOPRdL1tnePpepo4qvxY09UfVWof5Yu94jYg4e/BPEXwFRgtXN6jDwbVHOFk4QkMIwZJtVHmhXIEWmyp7a3t2/hFJUy4f/kDjruADTG+VyrjSajQ5X52nTygD/VqDbIcpuNNOewEz8B2E+OQF3qAnf4emSHEhYt7Fj2HDV3wEytRRdKdMLZfH2I6ud6h103CknyHHOm5UbdExAeMx9gNE6//7LP3iBeGr5mpzbHrGhOU2UKpXYdo9p1abVV+JlCewN7tQl9eHjAfFXf4F7Vg== 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:54 +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:54 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Sat, 19 Nov 2022 03:59:55 +0100 Message-ID: <AS8P250MB07442482CC6B06A6DC6286F48F089@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.34.1 In-Reply-To: <AS8P250MB07443BBA100D818B6D4B83448F089@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> References: <AS8P250MB07443BBA100D818B6D4B83448F089@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> X-TMN: [L6J4wYHAkZbg0QXjfz/lcA+goOUFwHFkGwAKBR3ZxFA=] 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-6-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: c1b12a1c-b998-4f66-192b-08dac9da2269 X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmpdHtR81+IA7gDwjaoMToLszBr1DrbImXaPrGqfX6KjTkDVPG5pa78KSpDq54SJluyBf5H0p0lXPNzd2/sbdTwJLYvDju9w9JSA2Eo0eTKCQpbFMK60GC+rLIoLp62vWoLX/EzPceLx0Wx1gsSH/Uhb43uUHbYlPvkwPTwq3mrdaSopF29fxCxWJGeEOAkiuB5K2UsZs9O2yeDiF7icm881nakIs545oHpeU0oG+IzLCH6oWarZBIdQdQcdgD1Sg9GK8O1lSjGG9kaXtVkpux7GY8vGEd5OogDzDQn6tIxTFLvCS75Y8ZWh7WyCsejIocstsaAh9HAGc7vpBfSG2or7cKceDpTgwcHOLtcDawAjMXUQkESfpyXTqE48112PfbNn96ZiCUgCd+Vf1VC1jkL8dttZZ3/kbgbDKgiibsTth7gvk4FSSjTG6nPAiPvDqFhIoELLguRb9wHlkQNnPit+iyRTFv/559SkzZv94k/6oy2UBQL8d22sVCdRqb5E3/oMBkRHrMs/COA39IzMbgksiGRG5wME2CFYkWPcm6fYdWeTt+YMd4iw9vQLLZHHS27Dxd+txn+6r1qAB0vEM5mw2I2S0aVpdMI2mPLbaV/KnLp45RxboGPcO1J8kfpArV1HVcsEG3N+FZgihOxOrc0am61YXKm7L8BJ/VM72vUiacqsNtbBrzt5+0vS67ARbgxE7CZjKZSbM75TtuP3y+QYOomDwPNSJOoxjKE/5r6dm9BnE7JCDso3DojFiF+SIoY= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0LI6lT5XfDgT6OwQMt72yEdysD+oM0JVkjuNUKEJN6AVnE2Q7QIYXwrZdZyOOsni0cra6E1OA00wcEiAXDUgosXV6D7VU+VRMx83LhsX1gQONuAPZfN2EeYPUc4UVFV4sIfgnH//LdBBq/HWVVg/kGGEFDWsmymAf34+ncwnSh05M6RNu7YTDGz7q1dlN8TI1DhGCt9fSwC6l3IEWrT6RLcUMZsGGJ5RoqHzWCI2L2bbrDcFF17a4A9c5XOe5CdSkr+wza5MOXkHiHlc/wedIhnoeR0SGTn22a7WnKmaAaLYUdQ35Ze1nXQe/pQqVv9kxXkxpTyVe7vrU2wzsJzHCnd7m/Row68OsEl9t80jDHD+M33XoeVdI75C3WiHqN3AnV2s1tmSUsdkY6ZKcxSRQI3zYaH/JjsQ3rWPDGeNqReKCcwrTT6orLIviEyoKAnUTG0j4eFgobSIWoqFBosi5mb2KUilJZiMz7+JUH0LGEXYmmziFBDNvW0kuk+JawjmKz8zVjOBqLaSNlpp84UW59r8NkD7tXr7eY15e62/PZc9Rzq7YBHmv/cqFv8B9TNTvRME45ggnqYycKCY4/P+UffCJKLSs3qRlK+DX/jJVoPuv3In3aoFYBVUkdzTLYHwV7XZbuzcWahpmbrAXAvvCDhVPZivy+dmqNhlv6ZMFc4= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sX245oQYyw1SSBjesE7tHFy1MdbNDYZQZXPumXoch2xSplDjDZLeHyjT3etNr2PuLNA/NfJ6q5oAKM2wnx0unvbgk/lN0CC2r8WCk0d5I1MRX/HfV1Z28AuX8IA57yKJppX5DJ3/9gAHIO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lTYEbquuxJHjxQixehKkxdLz+Y0cKS+r9ZGqX/nXZjl7CkQcTaY5D1iXkEYZPEz8s7wzZiNph8B2d4MvmA+AYZ0un+A//LYZMjfTwfPMDEUaLXULd+6 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c1b12a1c-b998-4f66-192b-08dac9da2269 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:54.5744 (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 7/7] avcodec/flashsvenc: Avoid unnecessary variable 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: 8ubW18B1Q088 |
Series |
[FFmpeg-devel,1/7] avcodec/pnmenc: Check av_image_get_buffer_size()
|
expand
|
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c index 3c3d9c8813..89119733df 100644 --- a/libavcodec/flashsvenc.c +++ b/libavcodec/flashsvenc.c @@ -195,7 +195,6 @@ static int flashsv_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) { FlashSVContext * const s = avctx->priv_data; - const AVFrame * const p = pict; int res; int I_frame = 0; int opt_w = 4, opt_h = 4; @@ -219,7 +218,8 @@ static int flashsv_encode_frame(AVCodecContext *avctx, AVPacket *pkt, if (res < 0) return res; - pkt->size = encode_bitstream(s, p, pkt->data, pkt->size, opt_w * 16, opt_h * 16, + pkt->size = encode_bitstream(s, pict, pkt->data, pkt->size, + opt_w * 16, opt_h * 16, s->previous_frame, &I_frame); //mark the frame type so the muxer can mux it correctly
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/flashsvenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)