Message ID | GV1P250MB07379B353B0D8DB09A1856FE8F3C2@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM |
---|---|
State | Accepted |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:24a8:b0:1a3:b6bb:3029 with SMTP id m40csp546985pzd; Thu, 4 Apr 2024 12:45:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX3u4YHHISOs/dixvs5tyDH6FcJYlhOb6teMahbg3fkzKaLZHLscy4ZNVumTWlda7YJpmshFAsUME2BWYkxBnJDEq/wUpWW+O6nUA== X-Google-Smtp-Source: AGHT+IEAQWnO0Qyd67kYXEgco01m0ynNCbtk/jUkWElvhSCL6Wx57yPwX8s+h4Ksy8UkMxYtrsxm X-Received: by 2002:a17:907:7f21:b0:a4e:67ca:1040 with SMTP id qf33-20020a1709077f2100b00a4e67ca1040mr3019609ejc.14.1712259956736; Thu, 04 Apr 2024 12:45:56 -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 n5-20020a170906088500b00a43fd9e16a4si7743641eje.17.2024.04.04.12.45.52; Thu, 04 Apr 2024 12:45:56 -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="a60elfJ/"; 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 32F8E68D188; Thu, 4 Apr 2024 22:45:49 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05olkn2045.outbound.protection.outlook.com [40.92.91.45]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 931A668CD3F for <ffmpeg-devel@ffmpeg.org>; Thu, 4 Apr 2024 22:45:42 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vf5di4nRB5n0kyLxqklADcI9kI4BtVOMWpj6h9NcK/HwyCMcJj+wGex/bJOXXDcSAOmHvUSJSEWzi0lmtPrNOEP0Bmu0Ox2yaxrmQa9uFoUixn3XS9a2TSx/UJiP+0VxGbmquO0Vi0La0q9qwRGj/A1rFMbs3PhOW/nOlpiO5+K9zZunT4Dbty+QB990iS8+y5ZkqOEBeYVcQnOf1st3o65enqrlVWk0BVdM6k2L01b997Imc/4Thi8rWyt5EzedhW6e9Hcz5FlAvGjoi8SBRhnawuwclYmBqozg7ucgn/Aasy2NCH7DjyePeLdK4P69swI9OLGkwD2QKvdm4ia1JA== 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=gbuZthbQRWUE66CdAQQ8PbfyKhYaXQ3anVb4qt35cJ8=; b=ciAIQ7kdFBygZktCOZG+cRQEqlcVU3LCbRAJW0LAFiSpmxX6aA+47L3pzSVJB26cPyFMlTewZKHn/viwPJnXGJXbqdt7lcbYFDrb5SPsshGvyDw1uDDwTyhYSyvDIeWY0LhG9dNg1C0qr44Qv6r5iiWc9mZPr8tGEhCktZSPKAXtNiSFu9NZzGSflp4PH/1aXAtTJvZzbTIAqeY1ypXR1zAMc/p5RWgnA4lxGUP2Ci8KThfsjEMHv28Cf+b3mVbaBb89n5GB4eWSYyJJVWmvNRMa8udsexAO4Cs9Netiaf13JEKIlQ7pW9mgwtTxknvOmt5+NMBmra6tH70dEze52w== 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=gbuZthbQRWUE66CdAQQ8PbfyKhYaXQ3anVb4qt35cJ8=; b=a60elfJ/7bY2IZgkfDUoVTtYmseCa82s0q5xKVQrWr7bHDA/EOhOJkJTMsLpH6sZE8utpkzwKiqDx/qvOUsaU74eOmVrnocOU+bOmHa8KUvBLhp2zrdG64KF0L9ManfKmYh+xZEFq8kQ1+vX/v4jJVH+JJGJgvmhl5Y1vWx0Ft0OTfUo7uzwHOivbqU6tOdQc+2vqmRKsmbo9NLey5/1H5pzxpmACvANdYw15ko5h0FTO2Uo/QX6m4iJt17Su/v3qp78qaIlfCe3lgL6r5wo3VxM0Bf/96j+vHGmY3zIEdDeniy/DSa6rFMzIabz7tbQN1c1d86q8npohB2WowKqww== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by DB9P250MB0428.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:33f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Thu, 4 Apr 2024 19:30:26 +0000 Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::4a3b:cf76:cddc:c68d]) by GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::4a3b:cf76:cddc:c68d%4]) with mapi id 15.20.7409.042; Thu, 4 Apr 2024 19:30:25 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Thu, 4 Apr 2024 21:30:16 +0200 Message-ID: <GV1P250MB07379B353B0D8DB09A1856FE8F3C2@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.40.1 In-Reply-To: <GV1P250MB07373EAE6095C91504AB56B98F3C2@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> References: <GV1P250MB07373EAE6095C91504AB56B98F3C2@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> X-TMN: [hAIrFhPM0FxFdS/HAJdfdeuf/XEaHoRmZ/kDSKPRe2U=] X-ClientProxiedBy: ZR0P278CA0104.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::19) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240404193017.3969059-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|DB9P250MB0428:EE_ X-MS-Office365-Filtering-Correlation-Id: a1fdded1-8794-42cd-f4ef-08dc54ddad48 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +arllT4QT+W6KjyW1fNgwHbaugj6/Lz5aEg3Vnbgdhl1gqFfNTFqRXOFaBuYv5TXegLNkaUxSdQUm/kV2+OHpOfJML93FdmTf/HpNFqnFJlE6L7y/3oaKaDUkJZ6aFZBEeeFCt6KQ823mKcMK5enKS5bvl8E4Pkfe10oPin4uwkTTuVL6Ur5XKl5djFVAJT9K8MWa3Z6BVMGPU1YfMxrthyP+nL6SSg/4pLPg3qzHvdAJ8fw47IEY2esnstQgUAUgEpN6KLpZg6ERHGkPRbnL7WVJgX65ysMIX0+QXVZmwyV7cQIN7R2YXHaKtyfsXoynUVaTjkcZ/oeeXWz91MJVrHAHgANl7/eBea9nKSgsoH9Q4HIuOhMLlwGcG8oAvL+AA48UzhpXfMIU3+hlASwn/QUhcoBTZ6HHA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MOKxupt126ORr9ZkeOzDmPgCco488eP9xCTsQvla3C/cd3SjHVnfH2UmGv9ScQ5i3roNrq0EBWsn4ELQtxsxJ0xsAK61RfQ1X+C9nirOn2vvlEVGwThcQcD/p+VnDEyIH6pjVPUcIMjQizPlAVpC7FwfGvsJ18cro3l2/pnpfnpya8FhuEOznhbYzovdNRMyIao3PqoU0TZU25oSbz2ROdotOvW4yRnAZSNiW1npZqhglTYz0QsPVG5MLHz0dxYELom9jOxhU6IlNyfmGDRMvVhhNdAu5zebIhPNvEoJnsMGrZ6kf2JJB8vCrKIt24uCaFNau0+6snELPbRWPKpM23aorSPC8sB1OZZMA9bKKGv+VLhb4S/tPXNLEhBAuauRvvPaRLhzUwMQaCq8oNxvYrocyxMY2pP5c4q/HpGYeglb/HPQnGR4bPCepWjF7RKGMSETX+pEZELVVxg9L3ty9OYrAV2CWfGB1opQsuPMv89qtMfbLB6yPPbw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a1fdded1-8794-42cd-f4ef-08dc54ddad48 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2024 19:30:25.4639 (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: DB9P250MB0428 Subject: [FFmpeg-devel] [PATCH 8/9] avcodec/huffyuvdec: Use assert to check for things that can't fail 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: ea4ohFHgJXUY |
Series |
None
|
expand
|
diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c index e35d55c8ad..a8ccb724f5 100644 --- a/libavcodec/huffyuvdec.c +++ b/libavcodec/huffyuvdec.c @@ -290,13 +290,13 @@ static int read_old_huffman_tables(HYuvDecContext *s) bytestream2_init(&gb, classic_shift_luma, sizeof(classic_shift_luma)); - if ((ret = read_len_table(s->len[0], &gb, 256)) < 0) - return ret; + ret = read_len_table(s->len[0], &gb, 256); + av_assert1(ret >= 0); bytestream2_init(&gb, classic_shift_chroma, sizeof(classic_shift_chroma)); - if ((ret = read_len_table(s->len[1], &gb, 256)) < 0) - return ret; + ret = read_len_table(s->len[1], &gb, 256); + av_assert1(ret >= 0); for (i = 0; i < 256; i++) s->bits[0][i] = classic_add_luma[i];
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/huffyuvdec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)