From patchwork Wed May 11 15:40:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 35734 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a17:906:70c2:b0:6e8:af56:9c41 with SMTP id g2csp3261175ejk; Wed, 11 May 2022 08:41:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiSkfenyP10DgD6gEfOGrt2x3wf51kZMSMKnA80VavBvFCtplwv9TuT6jPyu5hQ1pbNobR X-Received: by 2002:aa7:d8d2:0:b0:425:e22b:35c0 with SMTP id k18-20020aa7d8d2000000b00425e22b35c0mr30003496eds.181.1652283685937; Wed, 11 May 2022 08:41:25 -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 u2-20020a509502000000b00425ff2bcb8csi2403378eda.527.2022.05.11.08.41.17; Wed, 11 May 2022 08:41:25 -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=HWu45IFv; 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 E074C68AD28; Wed, 11 May 2022 18:40:51 +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-oln040092064016.outbound.protection.outlook.com [40.92.64.16]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3087B68AD28 for ; Wed, 11 May 2022 18:40:43 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AkucqsoySSWtBR06SZNHmcRQSV1Ea+K94gWM7AcIuMd0by5gWU72B6xoAvb25MwfS7nMEA2+N6AhNDu+Fe4BLr0CFWx8T1mLaTiasbdknNJDQ14ku2U3qeQZEQWiLSATuor4aCv8QQ3qMkxDRx3ywynhjXvVYPpsxsQ+K1IEaQyk2FryYhQBr21CVtLkBsOfiBtxjfIIivT/HDEVTy2LaZnB5gqA0l8ayAENCAjqG1O965wEZYDOMjCnWrg37g76zGKq7kptQAzstehztdOZ/Q7jZ1U0KV4ptrFMy3xIyKEaXGG8vf7V/fzxkiLvLb4JhQllpTpyii3xqVqqOobe7A== 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=4XkhQCP/I1W4m/OIm+RdLhzquG60He/LZBCZ6Dx3pc8=; b=LxS9kTrNrk0RJox+uSFCgDuACFayLkSC5odxpfUPv9s44zbTWshCOKhbPQM3gja4RqMY8D/FH/OjWTdCEhOLLzwLpQQjoiW5/hFYw1ZtIYJN6uo//BLcm33AbDGvQGM09btafMLguWMTmBv7FcSxfF8RkV9osxdRVnMlCB1A5MI6J8PWzPtbOGsM11ZVonam9AyNVTRndY4vbUPVvcD/3wa7Pv+v9aj4uay/VoavMGUBdlqNF1+/hU1dd65ND8L4i0vipWj64kfavOgx6Gc7Lk6KqUhnNqa5u97YXm6IDvWBBLsZrF65VJHty5Qr3LVeaz3qMANnh8iASdNQUI72kQ== 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=4XkhQCP/I1W4m/OIm+RdLhzquG60He/LZBCZ6Dx3pc8=; b=HWu45IFv++JUvoJ1YM+Eltx4hSnCcRIghuftExZvdaUAWP+pHJmwuaXIlDb0louQaXx2u3FoG3id5FLi9maRbVa6yZnsJlC7jOXigM0pkXR/XgeMYQ+MJMtAv107YySI9BSbjuqK+yGVpdrsO6W1CYxoxJveiY1oTDEYViheL/VIxXYoc7NIbODTnE0jzSlX3fUrbYBVrwuUN2tyPYkIrLGRTcWKf4ZNpNoDUdxqkR3k5RHQ2ah4qWBdOwpYkOyeZCVutRRqAtwN7cCOJcfP3nu3Su4Utt/IErB5Wz4CRI7JxgJCf/BJaRxulh2Hkak59SE1iZW2aZ7k29gcwTTr/A== Received: from DB6PR0101MB2214.eurprd01.prod.exchangelabs.com (2603:10a6:4:42::27) by PA4PR01MB7534.eurprd01.prod.exchangelabs.com (2603:10a6:102:c5::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.13; Wed, 11 May 2022 15:40:41 +0000 Received: from DB6PR0101MB2214.eurprd01.prod.exchangelabs.com ([fe80::60b9:9f29:40cc:f01c]) by DB6PR0101MB2214.eurprd01.prod.exchangelabs.com ([fe80::60b9:9f29:40cc:f01c%9]) with mapi id 15.20.5227.023; Wed, 11 May 2022 15:40:41 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Wed, 11 May 2022 17:40:32 +0200 Message-ID: X-Mailer: git-send-email 2.32.0 X-TMN: [eyPSYTtn8muwesxJVlQfy439ho7Ket2u] X-ClientProxiedBy: ZRAP278CA0014.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:10::24) To DB6PR0101MB2214.eurprd01.prod.exchangelabs.com (2603:10a6:4:42::27) X-Microsoft-Original-Message-ID: <20220511154033.814820-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9a07293e-1ea7-434f-88ff-08da33649a92 X-MS-Exchange-SLBlob-MailProps: +LiGfBxqLEtOq11dBndvwNG52fGNPT+6erk89ANjuCXkaZvCj9w5tliAtnqljeOnFH0KjFDMp0bouDi+8SkOyooLiNM7Llqv8Qt7sqT8tI9FAo+FyRz11auN/Hk3qfKcrso0DyMRtnv0Z7h+ntyXycwsKuAi0UwwgBYRFwfJTbImpzGEs83TpzTBSVHV/d44rlZyXWzLflt28rSFIEH9LernR96a3CgPHfdhBORdegzaItUPgCFEHvMFm5vAm4Nu4ETjGgXmETWIPf2ojvOu+JHX/6lB0tSWI3OX0DmYEMcy33Ua/6Sw+D6l+25pmyFVshFjyYf1TS1hnW2ye7iqKuDekNJCH3tmh1kW2Fj22yHrhDuWNI2DbdxdWADEJqRPq4aeYJCSYVrmhYgxrv7kPutwennvdaqDn6V3laxtykXbt0NF44eNM8WCYCJf1ELHH9pQGKmhff4SKKmwRs9zadM2SvBmpZQoBaWJ13r+ps5dxbMLlH5wENMKHdTuNIpPlP/gaikLFNsf4P86M4yM6Fe5IfNJ9leDgIWzZ8Y90rc7AY4k7rrC53/dXv1MqGn8gylQa2Y1YaksNoVk4J977g5gU7hBI1B9+Y5UU6JpHBGSmlw8HEz/nst5iOQcR1BBPl0Q1JywVfhVeyXLZvAZUAbcGPxrfXeAINfi9w7YohG8jgz6DVV0Ol62FYPw3NlYzu/oBWzoCe0wGu6NA2II26se7/XmyvAIUfA6ouPBb6lnNxWHufTh4KW4PYo+K5LZda3I6NqnZdSaGYHWPAOoCoBBa7eTBnyM X-MS-TrafficTypeDiagnostic: PA4PR01MB7534:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: scxadwe5B/csz+w7YXzu9aDL9RircBOPckztMzCwfmNSpyY7su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.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9a07293e-1ea7-434f-88ff-08da33649a92 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0101MB2214.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2022 15:40:41.4230 (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: PA4PR01MB7534 Subject: [FFmpeg-devel] [PATCH 1/2] avcodec/wrapped_avframe: Don't attach FrameDecodeData unnecessarily 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: OfL4AKgpdNpP It is unneeded, as this decoder does not call ff_get_buffer(). Signed-off-by: Andreas Rheinhardt --- libavcodec/wrapped_avframe.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libavcodec/wrapped_avframe.c b/libavcodec/wrapped_avframe.c index 3af007d478..06c274eed0 100644 --- a/libavcodec/wrapped_avframe.c +++ b/libavcodec/wrapped_avframe.c @@ -98,12 +98,6 @@ static int wrapped_avframe_decode(AVCodecContext *avctx, AVFrame *out, av_frame_move_ref(out, in); - err = ff_attach_decode_data(out); - if (err < 0) { - av_frame_unref(out); - return err; - } - *got_frame = 1; return 0; }