Message ID | AM7PR03MB66607695B23A4A90E3FD73688FCA9@AM7PR03MB6660.eurprd03.prod.outlook.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2a4a:0:0:0:0 with SMTP id k10csp3402746iov; Sun, 29 Aug 2021 14:29:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/zTQP9XT5v5GboogR47SX8591UFrRVuyBAhf+DGMB9gGN69TxJ0FSbrHZDWlqFpzimY2a X-Received: by 2002:a17:906:6cc:: with SMTP id v12mr21995975ejb.153.1630272566700; Sun, 29 Aug 2021 14:29:26 -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 q2si9481805eds.540.2021.08.29.14.29.26; Sun, 29 Aug 2021 14:29:26 -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=tP1Hp80O; 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 5E1E168A40E; Mon, 30 Aug 2021 00:28:24 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-oln040092075055.outbound.protection.outlook.com [40.92.75.55]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8AF0F687F49 for <ffmpeg-devel@ffmpeg.org>; Mon, 30 Aug 2021 00:28:19 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LjB1TamSDBmbYi2dH6y1mkoSAjXW/QhfhoEIshwnTM1Dyr4kwWEGsUcZ/gQbm03QnC7H5R3fGlZm3ZzkHJjbe5qkunBCEKPNQ1Ck16AMW6PAufSfYh/gDik//GeSenxshtTfR7ZSsv0gVj0Ve5YmyPYi7XqrPUFsA84l9/5zDuFCFZodCU1Fo+h2PJdEkwqhIaWVWGvjJYP4xsilEC4MuzyJgMaiVScoq6TTZ+8n3SAChrxFZfmIXka9dHc6YSqNig4cWdj7uQVB2Yf/YD5M1mssxkAvFdhvw+RVcTIfmD8EFYx4wgSwCQEqjk7PbW4QKNc37u83LS5VcdVkpeADFw== 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-SenderADCheck; bh=Fl4mfs+V8+SLTMvNdHAYXPd6DoEYQm8llkzwIFcd3oI=; b=KmkhywZV/xNtRgyd3ROF2JdjuY3UMX0jHQ0UfalaSPYki8iVWAihTZhUuLWzChDGHcbD7851kZtSAuMipNpDdUt8MiJNG2C/cT+qpdgL0orVyVR2QORJ28P/4mhXWaxiqTnviH6QbbNzW5kQy3c+3v3X/ITayssB+oDMi9TTUoWP2YUdo6QYYzk4praMcW8yWWGq3+ZA+IGJBHVsXOAW0VD9ezJHetLKXKYVus6x9gxOwBL0vB9zmiRqlC+K3Pyon06qTeJfd+WH2ioOHptLYBI5niERCBgaNDIQyARTT/+s3+JDiehhHvjch6k8qEiVu/f4L+YYYfR7DKegIT4cpA== 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=Fl4mfs+V8+SLTMvNdHAYXPd6DoEYQm8llkzwIFcd3oI=; b=tP1Hp80OKr7kH+vRobTlEz4TOZ1ooAMfcDlQKCwWsAw4bU+Gmh1kRdSqmkI5ey1+vRnP+tSRnBJXcWEbiytqueuQi+3NkQ025Wq/O3PfbcrmysbTAPiYjUxBmuU/+cTGVMD0mDOEHsSqh0ecQYBmj8dhnZTWX+wQNtKoGb1ItUhjwXoeVFEKyYmKw6SziSTBEb3AxrXeisX7FwYzHMoLIlkHCODkdXC4tnRHe1loOCQZ0Q/lMpml6udsEVrVccmBH9RQ91Y8MlpOBVgPu/0QzvtrJgznmGbbyZoXtdmtSGAM/jPa+f0lXQDz1Y3cos7Cr3yvSXFIE+89P4XySr1g3Q== Received: from AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) by AM6PR03MB5927.eurprd03.prod.outlook.com (2603:10a6:20b:e3::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.23; Sun, 29 Aug 2021 21:28:12 +0000 Received: from AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::f8b5:1ef2:89b2:f8c5]) by AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::f8b5:1ef2:89b2:f8c5%7]) with mapi id 15.20.4457.024; Sun, 29 Aug 2021 21:28:12 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Sun, 29 Aug 2021 23:27:44 +0200 Message-ID: <AM7PR03MB66607695B23A4A90E3FD73688FCA9@AM7PR03MB6660.eurprd03.prod.outlook.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <AM7PR03MB6660E7D173F394F4FA96859B8FCA9@AM7PR03MB6660.eurprd03.prod.outlook.com> References: <AM7PR03MB6660E7D173F394F4FA96859B8FCA9@AM7PR03MB6660.eurprd03.prod.outlook.com> X-TMN: [ZHPlBmlPV+K+J/vaRu5xzxGzITAdYxei] X-ClientProxiedBy: PR0P264CA0178.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1c::22) To AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) X-Microsoft-Original-Message-ID: <20210829212744.1505779-9-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sblaptop.fritz.box (188.192.142.38) by PR0P264CA0178.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.19 via Frontend Transport; Sun, 29 Aug 2021 21:28:11 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 15616e91-ca65-4d52-cfc7-08d96b33e749 X-MS-Exchange-SLBlob-MailProps: gjx25WM8ZNXOVIHST31EzKLNwg5cTLbyqQa5NobdPK07fRNdwA68YHFWvSu8Ac0FaQdHmMGbRlvm59syeUNrpjXcT5hq79YpGDMSBZJCvBmGDda/EskI8ZJi0ByLK9iq7ojUrEZREYB492B9p/277MKJm1jf3u151zNPzpJFLfPA/E7VQexR3seaGNObLqFkEG84ETa7VRXctmdFCu6jgwu6DYbrxzUf0dQgRcEVw2/rk9/8DdSkMjtkBySwJt009GwTE8Q4FMh33wh0BMBsvw/J0L9k3iAO/vqapjXOCh+qTOF0yrx2c0wXCNUyZtshpba9Dyu1NtMcsAM2d3zY3wzmhXyAj7E52uakgtihgBHH9CoTqt0tfiFNFGNUgL/IUcOMD44nzVdCwnQxlqbLeyppBIJEfUKW4SkUwkj8tjhlrl9X4Cne2DfLMg8k3fciiGgigdaPyxoWRbirrhQ+VR9YGcL03p+vGUvsu5A9ejf80Jt7x/Uen8Jx9DLYYZqXrUXF5Nv/g+TnfKJAvmVNYTqYWShG86fSsxr0vU3G1r36ccZlBIXEkPBQMmIHB07tx1tsMLGBlXQIy7S8PkPHZ9OJejerF1gC1C8W3nF4wr+u1k6K4ba1Gzyt4fsxQsItwr7isswHVjsRHDpYODLndLLIq9+CFBeBDGgbgGnhl13Tw5kxIolOzUV2966UtnbVJcvumeivCfeQAAD8vCQdroLacx2ByY0eKoJnX5UNOFI= X-MS-TrafficTypeDiagnostic: AM6PR03MB5927: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hmpJvqM8c/acVOiiSUXD6fo7nBbTEnmxgyLZVapOB9o9XGFA8tmz+oUEs1dmdsCgsnCwPOYSwSuYgSXvjM2pzj6jiPyeGsvqOOfh+Y2fUiMsz5z/EkeuFS+AejD/HyoUx/V62mk8w9U8NztJSJOhHQZMq4WJT8tVxhZL22vxsCKv83zky8ZWA/AhFDif0BuZ35aC/9JvmHhJgz2VBqfRCQa3JE6Rh2Lx+5zAGQ1y0ysGsI0DTf2Kd8LFiFmteXqkRvE7AarUpjWmDyVTafGox41BB+dstBbaRQuBl2ZKZPrvMvttmY+rtglxhCENIssbLSeE4KFWucBL0kbIq4+UDtUv8wNJW9okWC7L989vm7Fu9R1tIx22fb7qg8lWAiaHWDE87Yz7f+2X7kd+GpOTYHIkZoe53NZfNo945m4DIkopWgGtNEg6g7H1G8+mSfAm X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5N3bpyf2b7TU/uZcwVWP78WEOdDKwjZIAF3zGx/im6czlrXWYQ4sChqW3pHplFonIbKrSefnUo1oahzmaNab3gCh5LW2bV0rlesJuEQOWRs3eJ92yzdZsjLfKElVRJrtUSQ54PA8hYHHX5MEXV9wRw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 15616e91-ca65-4d52-cfc7-08d96b33e749 X-MS-Exchange-CrossTenant-AuthSource: AM7PR03MB6660.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2021 21:28:11.9804 (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: AM6PR03MB5927 Subject: [FFmpeg-devel] [PATCH 11/11] avcodec/aptxenc: Process data in complete blocks of four samples only 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: imVT1Q+tJgkk |
Series |
[FFmpeg-devel,01/11] tests/fate-run: Allow multiple inputs for transcode()
|
expand
|
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | fail | Make fate failed |
diff --git a/libavcodec/aptxenc.c b/libavcodec/aptxenc.c index 5ea6053c26..effab86b61 100644 --- a/libavcodec/aptxenc.c +++ b/libavcodec/aptxenc.c @@ -215,7 +215,7 @@ static int aptx_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, if ((ret = ff_af_queue_add(&s->afq, frame)) < 0) return ret; - output_size = s->block_size * frame->nb_samples/4; + output_size = s->block_size * (frame->nb_samples/4); if ((ret = ff_get_encode_buffer(avctx, avpkt, output_size, 0)) < 0) return ret;
Otherwise one could read into the frame's padding when one encounters the small last frame. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- With this patch the last few samples of the last frame will be ignored. It would be possible to avoid that by padding the frame to a multiple of four samples. This could be done with a new codec cap/flag; the existing padding code could be reused for this. libavcodec/aptxenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)