From patchwork Mon Sep 12 14:01:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 37855 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp95866pzh; Mon, 12 Sep 2022 07:01:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR48/DS1iLkXDtOZk9ksnEMVP3lz74sZkCH46C5uS5M0/lRSoHUYs1Q/Sx+6OHpv2C1+6Gc+ X-Received: by 2002:a17:907:2711:b0:77a:15d6:931e with SMTP id w17-20020a170907271100b0077a15d6931emr10688038ejk.154.1662991309789; Mon, 12 Sep 2022 07:01:49 -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 m3-20020a509983000000b00447cff2e436si7598915edb.200.2022.09.12.07.01.48; Mon, 12 Sep 2022 07:01:49 -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=olyGGEMg; 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 80B4B68BB14; Mon, 12 Sep 2022 17:01:45 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-oln040092068067.outbound.protection.outlook.com [40.92.68.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D749F68B7B9 for ; Mon, 12 Sep 2022 17:01:38 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l/d9qJjJPj5mET4Sa074WzDiWRIynAUoiVCnPjVYxcQQ6Nv7ci4jDOQ71V0ry4XBKC18jasp2Uex3JyK3f4Leqv4exCMumd1/KVlBWMNkJrF4ohkInIj3DxZ989KoyXt1BmcutKD+WjuHQ0kYewGNL3uC4vu534RasoVeeT+rJIB1GVUnp8y2GJOvW/C4chcnKeqOZz0kpT/uptAiK+RdaAhQiAWAHp23BOYxoOf1DupmBnk94uy7M2lNvtPEMVMqYcVwdUY4lDurcmU+Dl1NSl4lXre9iMpxmuitFeiKXhmIM+EUFSwAB5Ceg64ZbxImLfNboqLsJhdnO1INl7eMA== 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=uR0srvDNsqm41giqYwQjivnonf6tjHAMS8d59ruT5bg=; b=L1QbcrOTUULKadkrmz1bfaDSzV7ur1PGEd8R0361wkQV7bfqPuHqTISXGgbRN0WvSAYbPkd0WQQ6PLvHF9rZ5IQC6vsPZFoLy+ymg0mdakJRRg8AY0dy0dCqsq4+ctIremH7vorugb0GbfbdV/5UTS5uFDbm7WKJgIMZspTjSwK+mmuphE7F5MaOjd8K76xZ5aqegkcqG5bWroO1YQEuWhSJnLeLUeIu2e0yiiGe5mIj0HMvMR/5g0MbirYDXgZ0i9/aBcrD+tLkdp9fRtJJKYXuH/tLDcAFjruR+taQpIQmO0/RTc1ZDPgHx5a8r8+z85QkmW4LAyK+i0T+fLcH7w== 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=uR0srvDNsqm41giqYwQjivnonf6tjHAMS8d59ruT5bg=; b=olyGGEMg4jO1pbFf7XsShU2jGUqNSDboEDbgwtsH78frZVbVbvBgXxf1fcwXFdeIRkRpyFUXwPLhwv8TyEpGbePWq/lSbBRCv532xEt62uVpoXzctE436Ws9YCNGIXdjoKiuOGUFYHzdBD2DXlNM4yFizw02Z3t98pYDs2zYtXM7VMcZzCwXjr6P20wPtFLnO4fj09d3/XFJiS9woAGQFxsLi0lozkWb8cRxjiHuOVR7uf+P7V5Gv0br+bv4V7Fpni/N3/CROO3QcnbxzVXaTaaWnrnChNmq2GyLcZwbTICeLzYnb6IVgKuqyO5dPRB+T+enWiYg7J4jIcTeId7dYg== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by DU2P250MB0270.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:27b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Mon, 12 Sep 2022 14:01:36 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::611e:1608:45cb:b58a]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::611e:1608:45cb:b58a%4]) with mapi id 15.20.5612.019; Mon, 12 Sep 2022 14:01:36 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 12 Sep 2022 16:01:28 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 X-TMN: [XqG4XluBPHBXfwn2AykVgUOwWIdcmEFpvbCWWKMosBc=] X-ClientProxiedBy: ZR2P278CA0036.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:47::14) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20220912140128.15356-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|DU2P250MB0270:EE_ X-MS-Office365-Filtering-Correlation-Id: 9562014c-a5e9-4108-1caa-08da94c74e96 X-MS-Exchange-SLBlob-MailProps: EgT5Wr3QDKyy4kLjx+6603QexPiU1Rq6gBvx6/JxqKGWw7VK9VlqRQF0jO6xeWdeLHomBEH40RwttDs/vpOSjWq8M1Rkn3MycUL9SBDqjP9e78iPIcrIdL6Fvn5uyN8JIuBDrFQ5BWVt6QMjHgjb+gTiLOU8uwbiMBybVXOwVQJNPKSZ0GM0f3ggW+udQB7nxV1QcVQO6kowmUY4ZqTf70JL8z2BjkHcDnXyZM+GNA/fce51ep4WpTLzJyJN8MVFc69Y8WStEuW23Rgut/OSPAKCrLahI4mHJit3Q/1mtatlIM+f8mb1tpGesLU9svUzMloeJ1foSfe4Bc7uAY105wLtYihPRU0CqrTsp7QpVNPUcoKKZdh7klaq21Xa/ATyKmUEOwyq/UZjEPgKzaM+UgaYdIqNvb9xvxzgaPuTJ1cZKgDhlcp4K7Zmi4hB5Uc0ogMquuvm4mryS9aU4/Puu1I6sXz4NkJ5GH+4xzUkP0r7TIebMp3G832OGqoWB2UVlcozWEWg4UmzJecNYF2Tc/JDRdSVrtLzx9PnK9gorW0jLXaR8DD/uKUbfTuxoh29Ex02WqxPSqrRMt3o0uPaBNKe4G/AulKx3/aMRiDQkFNY8TJPJlY4zrwaxXWSlu1ZFP6HWDEjSx1xtm+CNTXtrSyU42GVK4gv6Y/z3C8mXvwllSMLoR7BMOoc2CGMDVoVJGUZuG4v7O+uuL/3CCKYh0qbUgh2rWy+IUeI6B19+1c= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Z2B63FSlOyt6uPiI34qkkMQPZ1hZdHMyNhW18blY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O70Pp3/s5nMUUvCUj3QDYG71HEmy5yGb2Drvp37XNdLaBih7xlbnLOMHeS5pERVrVnbhi00OCCFeLvUrSJoJSkHAdZ3kz+vcQs6aDhcbJhoj5LRw94GLzUqTeguliY1cIE4ayTj8ND6m/Q1ALPUMfz+InP1wg04MI5VNQcEfowX9Bog+phAjXrKJEN2ImqsbP9cnQjhADt+xE2k0aLJd2+vWDFv0DWcpGJ6rcz4FRxPRirXYeM3X5Sm+uShSSbe0vD/kXRqmOheBax+w5R6mVnLZlX4DAf8KIJScWD/ayw6vu+VaIUDLoAl/221tVp1YTMKgDs5Mgrw0UsCXa0TmnUVA1qjJxHNwFI2M9E89iRGcW8ZsKXSejWICFRil2StMupbIV4ruWRkh84tBoecKx4Es3g+94dAXR783UOOF9exTiI+aOG19+c27Kuq/p6LeBkorpeL97jokfKvkCWHJgu46U1dYlJeuPHIbPqderHbWI2pFqwhH3xV1mdGTdk74yqurxS+FFX7uRHMC/l65bBg4q2p2qmJrmslIS/VLpIQNO2Ok86eJtu634HdgcFBzsFjx7BcIHlVSqgxPEHT7QiGov5vFcfiYL/iw/pghGJddMpa9rRK/eWqys5UHIfWZ7iCzgHImsAgXee9a3/hCg5ha0LjIr9f6S0WKFm+3qlTQBcL/OF32lks7+OUyGEsQA+l7uPWFWpQSIQF0EXJHtB7NNqFzImBkp8A4isLxcsCXVsJmXd7twO1y7ON33l4qcf1I8pW6TSiUrETTBU/dtiCJeSbgX2mwuSOBV0zLjoAH6ofiMJNbRAaM2AmhR9PQ3DwgODo/66lX9qQVvDMuIAF447EmAUZmHFogdkkMyz/ZdNCIGqMRkZ2B4Vnl6XCIsLyAVj1h/VXxJeFy10PNf4mIed0IC036b5HGMAuE7 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9562014c-a5e9-4108-1caa-08da94c74e96 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2022 14:01:36.6709 (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: DU2P250MB0270 Subject: [FFmpeg-devel] [PATCH] avformat/bonk: Don't set data_offset to what it would be set to anyway 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: Su8TkLMP/NuB Signed-off-by: Andreas Rheinhardt --- libavformat/bonk.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavformat/bonk.c b/libavformat/bonk.c index fc400979b3..0fff0b5bda 100644 --- a/libavformat/bonk.c +++ b/libavformat/bonk.c @@ -79,7 +79,6 @@ static int bonk_read_header(AVFormatContext *s) return AVERROR_INVALIDDATA; st->duration = AV_RL32(st->codecpar->extradata + 1) / st->codecpar->ch_layout.nb_channels; avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate); - ffformatcontext(s)->data_offset = avio_tell(s->pb); return 0; }