From patchwork Sun Mar 12 18:16:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 40649 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:d046:b0:cd:afd7:272c with SMTP id hv6csp1175851pzb; Sun, 12 Mar 2023 11:16:03 -0700 (PDT) X-Google-Smtp-Source: AK7set/map3mvxE78cC8AJTgV/q7aWlxzesylF+fL0mzR3AXeXV0ie3mmKjyFSpLL5f/tUp0fRnx X-Received: by 2002:a17:906:6897:b0:928:2419:de6e with SMTP id n23-20020a170906689700b009282419de6emr1302186ejr.51.1678644963706; Sun, 12 Mar 2023 11:16:03 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id w6-20020a1709064a0600b00926eb6ce4cfsi1808423eju.198.2023.03.12.11.16.03; Sun, 12 Mar 2023 11:16:03 -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=BxXxyI9o; 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 615B668B63F; Sun, 12 Mar 2023 20:15:59 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04olkn2093.outbound.protection.outlook.com [40.92.74.93]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 58C016899EA for ; Sun, 12 Mar 2023 20:15:52 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GUHA4xMxgoEzSFQVkVB5fU04gUqFrkz0/ur+ba2uHby6Ff05MaKjUK/Rp5Gs3rHRswwyL1K4ms1fZ0+n8C+6qy3yeINDp72phNGn96pT6FlpCI9w/NX0m0QScDDP7BtySxmHsXOanipZgfZGquTCZdMPIhN8Qll7lqq0q3hPigQr/rQuOJjDDwiFduCXSr4xHJ/d7JFOnTqGN5ozPtHKQ1OUOtdTQe+TBmgEtlKhg/vYC83rF7uq9KGmLVO3Hrx20AaLnnS4tPFiyIh78uG+CAZHq4nutInU77SaKxzS6SwhXXNfbR1fo1oT1B1syjMz51b8HPGVSRJjoP6gWje5Pw== 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=2CVahsMrRMsbASm+u1zZWblOsOwiE9WEzt7tOAUOmQw=; b=Kwq9KTpfSGGeYOhQy+x++5zWNlSt8vo9DjoIcKiNKPK2TJiMqyeGc+6I15Vtc6M24lAMOJHB/iF3VyVSsxAehAs21KHhldR8NcEdWK8VtRuxaGmLOHed8pgiQnPcVN5C+RluP6H5iyTk+FwJthvd+1FKvxkskV0m6HwK231ZGH84bYDrhy3ozmwVqfz/QyrBUdHJV8ZMtZm6hcySmWemf+ZPYgKPkCJ4pv20Paki0QyypHbY9Niw/ZrGIV1WEhJUc479ubLEM8Cygb2Qfn2OEJi6x8Nr9W6GVwHbDeFbpursb8sXqAsX62x9ReHtvZTRvq1UgBGWPMCkrcuKGNwtgw== 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=2CVahsMrRMsbASm+u1zZWblOsOwiE9WEzt7tOAUOmQw=; b=BxXxyI9ojJy/G3OOgCyjeOXifcWjAv/oAsu82i0ayhKJoSW9r86vCryo+chHtvcpwCsG6DA+FMwIP1gy+SwToTB3b/Nk/l8y7UqGDg8e+n4kGU9UrsRPixWc5ShL+H8wYg8sIroTTmL0O1S4YbMfeze83wu6kVTwaWG9Wg+8H6Qa2UbVRfvtjwUMZDJnTUuCS4i11NsZZGFU2GC61rqfyVJf2+JyQUEx7EV300Z5piBj9BlMmrNOPUGK7+jyJXkMcl3LblaN5oVoO5zVZQZCZcGkXt7g5QFWC22Bu/kt9qdwBUbU/PziG0KUrWcteuZhX//AbJV8d9/5enOiQIq+NQ== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by PR3P250MB0356.EURP250.PROD.OUTLOOK.COM (2603:10a6:102:17f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Sun, 12 Mar 2023 18:15:50 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::73a:bd4b:26f3:cc2b]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::73a:bd4b:26f3:cc2b%3]) with mapi id 15.20.6178.015; Sun, 12 Mar 2023 18:15:50 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sun, 12 Mar 2023 19:16:16 +0100 Message-ID: X-Mailer: git-send-email 2.34.1 X-TMN: [XM0kAP35FP/zbH88Wf2ftkBTYV9l9Uy8nhTqzmxJGLw=] X-ClientProxiedBy: ZR0P278CA0133.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:40::12) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20230312181618.294557-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|PR3P250MB0356:EE_ X-MS-Office365-Filtering-Correlation-Id: 9c152541-610b-48b3-7bc2-08db2325cf32 X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmqlMnhDLfS9UznbWqNxqzZULgJAmDfbtqJLd+dDlvf8knNMGm41RgVppbyLofryIzyRgUe5iTrIFKNR5CuSxanbWfhUNB6MbTpUg6Hnpz4o4v33k8YEu4UmUflYgF87GnBZJuO3E38I1JPc3l+MRTJ76eAJ+VrVPolVBN0vpjfJXmpvoiPnKSl2+0gGkk3LBP9jckTfQgPbfR/i8kVb6zy6EXP3pEkfIKQv9vouE7M3RJYo5QzVe/RFSmgVJrpu1vc0bv6n8kgo9gbVFfey95LyjV3FY8Nfi98RUu7slLAE62Mb1JMSWdbJBf13SGbIrHgfM15wh3Ffh+DwmupdW1tfVsJXJ3xiHhcUbcFHJgMCViER0l2GDpR6jUETAFaooks4nLfPmzTA2wu8DwZae2qzl0wWNKZRwOL4fHHEMu6P2N5UQ2nvMKnCa2TkPZILW23JAH6Js+J2EmIM7QrEHARC0aEspq5IuVaCWBzrOug8JFWvd0LYQSxpPo7z3Xshc8Nl7M4HY+/7fHm5/LeNRNGVRhfSZeQGkhO7XXZG1h7iK0k0lUeLDYopHMEyTaii67IBXcWaFXN6sa9HsTdYESksYEMRAXwU0bKkbaBcduO8lv696hPAitiuWYzJtBbYtAiVEFyV98bHmzlHGba2shlQ13Paw23TZxEohmlmPrZAcBWGw1nIPwBu7sHtKUwsqR9ti3yCdrBVgp3wyV33eQXq6JMufNztH7qRHaWtZPe4oo+hhChqc/HMsTxg3d6JWxc= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hyKM3evSP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ossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2023 18:15:50.3739 (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: PR3P250MB0356 Subject: [FFmpeg-devel] [PATCH 1/3] avcodec/libxavs: Use frame_num instead of frame_number 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: JbsYHScZ/ubg Forgotten in 6b6f7db81932f94876ff4bcfd2da0582b8ab897e. Signed-off-by: Andreas Rheinhardt --- libavcodec/libxavs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libxavs.c b/libavcodec/libxavs.c index 9ed73d1042..6c29539f24 100644 --- a/libavcodec/libxavs.c +++ b/libavcodec/libxavs.c @@ -141,7 +141,7 @@ static int XAVS_frame(AVCodecContext *avctx, AVPacket *pkt, x4->pic.i_pts = frame->pts; x4->pic.i_type = XAVS_TYPE_AUTO; - x4->pts_buffer[avctx->frame_number % (avctx->max_b_frames+1)] = frame->pts; + x4->pts_buffer[avctx->frame_num % (avctx->max_b_frames+1)] = frame->pts; } if (xavs_encoder_encode(x4->enc, &nal, &nnal,