Message ID | GV1P250MB0737DE1A9D2AE266D7AA3DF58F012@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM |
---|---|
State | Accepted |
Commit | 27a830c1d827b1bc61216000ec86eba0ca82e536 |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:24a8:b0:1a3:b6bb:3029 with SMTP id m40csp2147203pzd; Sun, 7 Apr 2024 14:10:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWt6jSFXu9n3/59k115QMO7jENjxkG3xiNmwT28KlplNM3WE/F9MAUvb9ryYz6c7pPIo87dX6U3Af6LupLeYAGYactcFfdtpDq2TA== X-Google-Smtp-Source: AGHT+IFJvhEmbakPbukxsE7nNGlHS/NLqtj05zL0lQHCiTZuxz9PFagkseL9rbJ0oqYfMXyB/+pk X-Received: by 2002:a50:d59c:0:b0:56e:297b:ad61 with SMTP id v28-20020a50d59c000000b0056e297bad61mr5274027edi.35.1712524248384; Sun, 07 Apr 2024 14:10:48 -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 f6-20020a056402354600b0056e5bc5fc9bsi444982edd.370.2024.04.07.14.10.48; Sun, 07 Apr 2024 14:10:48 -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=bE6NFDWZ; 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 9E47268D26C; Mon, 8 Apr 2024 00:09:56 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01olkn2043.outbound.protection.outlook.com [40.92.64.43]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 56ECC68D1FC for <ffmpeg-devel@ffmpeg.org>; Mon, 8 Apr 2024 00:09:45 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GiOSLjbnqLi4dsLE16TKbRDqi3Z/O1qrtP0edgNJ0cLwOwnZj7QD3EqiM/4f1Mut/bNuwLhnnShyztCAbNhRdKcuZ8Fhpm6qQZCU0+d2d/WgunoexKHyl7vug4hSmIF8OOLZU03SdLvaxEEW3zh9bSY1Zc/1IpxknqwGWI4CTaSxo1Bu7BHelBCgMaukny3GBvWkqtLhMBcItEWW4gzoJYeQXsvpARBvbnh1b4gk1dcKlBEn6NpynpK4GVBJipGRlEIJyDpJLc6W+8x0Yt3bXir9V2Ir8XiGRb5pfgZfcdo19XQJBCSziN/G2kGuQNRr7Taks0g1dp1nVbxCpZ875g== 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=gIMh+fEyHBE7oyDUJpK/5wNtpOyIKdBMzElnhDBgp6o=; b=doBS4mg+7xN7eam63BFrQyQKE7QhgR/0twN5lmklzChETTN4Rys1gH5/SOTJ0xj6jwI8p+eUiA7SgQWi80D8auCUg9gNippZ9NrNbNvZHxUUpoBXB6JXamqw1+hpmBmpjIneg1NjPuARIRCodSG4Gvy9t4GNjPfk4YEyI8zBXKob3wdsSpQz7V55QSWWBwduISxayC+acU4XlqdWzR8Xvx4beVj15lW+pO/VHJyp1GQGpn6shFpaQY3nTbHPMb3XcEJKY/Ha1k3eqUPXEbJF240J5yF8FxzAIbhDMN9LS5lYKBpwyDjYLP9gWLXKerFKlDPcN2t+kTRFZr31agXQpA== 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=gIMh+fEyHBE7oyDUJpK/5wNtpOyIKdBMzElnhDBgp6o=; b=bE6NFDWZvIpqve48X39/XYS6yqCOh9bDUuvoUpgwKAH3P8tlL3qNX6S6CtxlNT//Dn51yhvb3R1KwzOiGuNNFZyB7iFWqhoC9ap0NS94rOcAUI+V2huxHymE4R2Gc7vplbYL6fbiPPU9nHa/r2VQg9DGGpGFEUOhvAMR8+tQIlVVuCr1En9+RzF1cu/OP+sA3RxgehIof3S0FCMPkUua+NlJpJ6pcgDRq9JZeabNsMYqwoHZqgfPLg9uKItB8IAObVZbr/QsFY9WT7eB3mhS7mzyrJK+dLYLJyE6u5W+ohDEaQnrz5hBPPwSQgDyGvMfR+6oAzscMSliXzRVCaoS5g== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AS8P250MB0234.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:379::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Sun, 7 Apr 2024 21:09:36 +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; Sun, 7 Apr 2024 21:09:36 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Sun, 7 Apr 2024 23:09:04 +0200 Message-ID: <GV1P250MB0737DE1A9D2AE266D7AA3DF58F012@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.40.1 In-Reply-To: <GV1P250MB073758D71A50C11C0A3C26CE8F012@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> References: <GV1P250MB073758D71A50C11C0A3C26CE8F012@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> X-TMN: [/63Ddt2EnwleobBVi8kl05sX1HVzZRDy2zkZGamV5Po=] X-ClientProxiedBy: ZR0P278CA0038.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1d::7) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240407210915.895619-5-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AS8P250MB0234:EE_ X-MS-Office365-Filtering-Correlation-Id: e72d09a5-224a-422e-f7a2-08dc57470778 X-MS-Exchange-SLBlob-MailProps: Cq7lScuPrnpOxDCcKCE3ew6GouC7ydNhVMs6zbTOyCRaZDQ3mc5g1xwy2uSr09F21VqoZ3MgvAwYeXTSSw2uzhWomH6cpcaAV2GGGtquTpVbFueuDY9utX2+SmwK0uZlTqHjZIcCed2ez+TT1LTsA8eXwhvbMjj7zYqVdVlif57QVg1Ci01cx0BF5w7nPaURAGuyAkmBh8wRVnmyVxXHNKSOGUAWYfP7waxuehbDh8Ahhk28/NRVfU84uJeRSOhWxo498PpZTFbnMrRONVUgVOxeW4bOkd5s6tSRsWo4LEjsBNyWaSEeuTm2LGO743lLc6AmHs2gyDLzmn0giWbfoZfggW3fRFG37uEj0AvfQTMTmRP5XJuUNpdpjWCcA9Xv7qByrCEcVUxjeds2Bmmlblz9M25L1hGTwXl9OELH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j7OkGWjYwwI0sSQZOVY0PNuoHP4BCLrAWCpS8wBMOOdbZ6/rANsF3nOqP2ZH8pw+5dkCmFT5TpT64HHy5HENYd57xK3kErPUYG122a6jI3+XmIzN+g2NHB6L95jSmrUyaO89xuir1Pq4cT41rHBKER962rmHenYbA7SsQxWywtGmUd8g2FCDhjZnRsLPR9KK+1XivzsbuF0o2Tit69O8041bf1sPg4We2kLrMB49LLbItqQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e72d09a5-224a-422e-f7a2-08dc57470778 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2024 21:09:36.1901 (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: AS8P250MB0234 Subject: [FFmpeg-devel] [PATCH 06/17] avcodec/ac3enc: Remove always-false sample rate check 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: EfOqP+T70+BW |
Series |
[FFmpeg-devel,01/17] avcodec/ac3enc: Don't presume ch_layout to be AV_CHANNEL_ORDER_NATIVE
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index 272d2481d9..32aaf89ec1 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -2246,10 +2246,6 @@ static av_cold int validate_options(AC3EncodeContext *s) if ((ff_ac3_sample_rate_tab[i % 3] >> (i / 3)) == avctx->sample_rate) break; } - if (i > max_sr) { - av_log(avctx, AV_LOG_ERROR, "invalid sample rate\n"); - return AVERROR(EINVAL); - } s->sample_rate = avctx->sample_rate; s->bit_alloc.sr_shift = i / 3; s->bit_alloc.sr_code = i % 3;
encode_preinit_audio() already checks that the sample rate is among AVCodec.supported_samplerates. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/ac3enc.c | 4 ---- 1 file changed, 4 deletions(-)