From patchwork Fri Nov 19 19:16:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 31507 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:d206:0:0:0:0:0 with SMTP id q6csp2862256iob; Fri, 19 Nov 2021 11:17:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3NhPNGmpuTzqyEUBqNRqP/M8Mz33U1HqciafOQV9YntHvI0WoIsfyMDGIl7MiyA0pJcVt X-Received: by 2002:a17:906:5653:: with SMTP id v19mr10838100ejr.360.1637349430810; Fri, 19 Nov 2021 11:17:10 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id u18si1278306eda.491.2021.11.19.11.17.10; Fri, 19 Nov 2021 11:17:10 -0800 (PST) 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=XWfO4XxT; 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 5955C68A785; Fri, 19 Nov 2021 21:17:08 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-oln040092070048.outbound.protection.outlook.com [40.92.70.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 151FB68A6E7 for ; Fri, 19 Nov 2021 21:17:01 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lw8DmdrC181fsKWNfAat1Pa6BUxgHjx5r1+pMkJi3PPUaB7zpxfXf/1dRHWwJDLbmqmIxEcbYM7s3LkC/ZGKB7SZaWuk+qdyyjreS0xN/wCRLNZwWtPPGqh0JMTEQrIMVUqTBAlICASigu2KNfSTXvUKFIrFkTu3MUmVRE+mIc4FqInqQMjnDEZ/BsJYyGOBCyjXz1kD77yHbnqjq4CrELVSFveMZvYNNhs4NDlsSP0mQkD7fvgQ3UBI+4qbI6lLtoP5XK8HJDdKy02Ht4bcs2NNBiCTy+ZVNDLnnew7s7a6Wv+EXmNbuXBgBBWukO2a1x3JuG3gO/Jf5nvFDsR1uA== 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=yvludC8vWHTIQrZU1jnYBoJjTbwpczjS59o1b4BTytI=; b=mFjEWT17DrJofXStoZeJa2KwLzkbux/M1nQB0D77Cd1Y4pN7iYrpVFBgKC/3sIk/It10Ltp0Riu/opjGyTU45JWIIDv0LMvc25LFGes7XWzNFoVmdyby5RtG4lWCC/6oMcoi2yj3TjUqUkPUdKo5CH4tBC+uJwEf9TVjQRgK6NO2A06+LBdSx4Jny01/xx3eSE2MdkvUdGNGqWAkSTinIRk9+v5qUWgsAGUIo0ueQIkuXG2xb33H3vrEN4qUzg9LQjxS7cZPLCHQw7jkRUaXsVcT4M2zs86+uLBjF8SlZnDwESi9E8rjOHHBX9uAfVJseMm9D6D11OXiJBvBWkn0Zg== 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=yvludC8vWHTIQrZU1jnYBoJjTbwpczjS59o1b4BTytI=; b=XWfO4XxTjhaAzi4fsNTO+Tmsi+ydS38rN/6MoTfwbAh6a5xjgJ8AWtkYbvvmc6jYhA0tje46tQUTHrImD/6sZOJwV4iDSOlpHsUXwQatQvavGuSzttGC2dTLZUTVQ5Zf7vdTKBiAF3iDx79ja6+HdVepXoe5ITA6nl1QLvJQEdHmABYh1TqSjmk7oFL0F8j5csn1UTh8OkqyEsicN3klmQmfwJBUv7QGHvWi5N33ENuAUU5jW5MjJe1BNEUeZyj6KPyguGBiZn68ZzrPKE3BbZe2mnYbtbgnkoUrsr+yCct+LUr5qFp5fKdIQ7DJmZiQY/FSFbu69z0+wcn6K4NO2g== Received: from AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) by AM6PR0302MB3317.eurprd03.prod.outlook.com (2603:10a6:209:25::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.19; Fri, 19 Nov 2021 19:16:59 +0000 Received: from AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::700f:d70b:3bb8:4d51]) by AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::700f:d70b:3bb8:4d51%9]) with mapi id 15.20.4713.022; Fri, 19 Nov 2021 19:16:59 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 19 Nov 2021 20:16:49 +0100 Message-ID: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: X-TMN: [ZI/EWIPKdGFmDMjoMltwjRPjHL4FpRBQ] X-ClientProxiedBy: AM0PR08CA0001.eurprd08.prod.outlook.com (2603:10a6:208:d2::14) To AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) X-Microsoft-Original-Message-ID: <20211119191652.1025931-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sblaptop.fritz.box (188.192.137.12) by AM0PR08CA0001.eurprd08.prod.outlook.com (2603:10a6:208:d2::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.19 via Frontend Transport; Fri, 19 Nov 2021 19:16:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2df4b8b1-a551-4bb0-4bf3-08d9ab9128fc X-MS-Exchange-SLBlob-MailProps: EpEO96k6WolGhf8HUbp7Tbhr2SS12qUIuC7q5u6lssN1m3G2Xc+PleAnulf+UoQdGEIGfGHO1j/6b93TJMut4u2YxkvMTwqi8HcjjbC+0yDoKJLE4gCwYtDqfvcxgWs8i2jTCQ8w9jZzZPioDI9B5jnUoow/6RwsJU1UKJABpnmvsd9Xv+lQrqR535kIw4Orc/rGBuW9lNrycBdr/dM92fLjG6CqOLU2JI1G0UG0zZuJ+WMVi4FtuDC1qXJXY3AwqVvvoi5NmVrNKLUzGnl7Gcyt51sQDamWsJ2X37K2HWnD2zI201gjlJDa1FB+EDHULNU2q8lDN2ZHlaPwGWg09aLDwCwmuxR6JOMbjcrOzYnfUq5LEdAkbq1WU4EozhWAl422iXkGhSo+m/7Qdlv3mfjKVkzt3ytRnRA1Hx1Rt1Vw96BlHRoyp2If9y7/Jc/zgQkSD6UZiJsnddKGQsi+2Jq+7QZ/PhfO3U9OjMQidDfZhh7momQotLQ9Fwe8glLxV62uz5XXkoUkQ7M7/O+oDbXoJZ0gIlP7NSLHh4BRtDlCCvSBsr/idQAjIStWtjORY4t+wyHZSeEY6kNwsdL0a0TiPneCqldqperg3rkdarhLUY2Gvuvr0SZrP0NV/nW/0W5yXl3UJVVcxj31HS8IC65OACRKj35pwzo4k00d9bMX7Arg+ZSgN5GJpAJYNzBTVdiRFvBBXNRcDwvJIJSZ1nEgDUQx11XnNx0vDnFUZWLkZ/1+mLzhC6YNSXktah4/v297X2R6He4= X-MS-TrafficTypeDiagnostic: AM6PR0302MB3317: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ep4Ul8/Wt09XzfaDQL/PZUwM+myEp6Fh3rnzVd16g3PjBQGkFhffA6f9my2d+ROosag1Fpo+xC04u/0YfMKUF0Am66/u5z1nPSKihDQ+txc2LFskZJdELSmMWS2QO/6E4L8XaQ5eRC3aUtRUccxNTC8gYXc/pVeKLYHPWPWV6u+7AR6/3l8KFlUj+1c0vMoH9zcRBX2mVltnhCrPOqgr6mr5U8zKkU3vW5db5fOfgJC/H6woG0WeTDqj4Jsq+cn1FaNCm9c913yH1nYuFSkArucacMkWy/L9mLkQWNxnhQbVXAePdTigE0ZFlBbxAXzertGKGs8Bkjy/eLuB1i4qBHL6CLg57fUTGcWsmPofvhim0z8uqrQ9SDorGDifvU1AS/4J67x5U0iG53257ShpYb1Abfkz8UNVGubz0h+IiChNSoHcUm4UioThoGBOXo5TT7XCswLr4yfaHe+KdVDFMjDWTeaSVrQXgJY+JX3FOvxxJ298XKxThEhXvBb1/+ZuyJIjtA1jBagcPJZhALIHeV3VHjrYkG7mqk+8A/uog6yDHDioNj4G7ClRd7WpWF4vEmI193wwaB66Uy3/RQ/8pQ== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SaronUo+vfD4NMXx3fzr3Adb+SkkJvRDzuzdlDHlNnTZNusD5skhfObMtqAbYzo6XmBzCxkPlytaG0tRRdQVb6SVfW/PZfEVzDV4Qu4wk1UYccSpa8OkphZZX8ldtljlgK8uJQZmNvahDZEvXFnx+8WgW/87OqvgdJv/KgDf5+Pv8Gz0jeVbEVlEW+bGobFMUUxwQpz/XFDXpozmRlkO1cyoqTl/RGOO89QMto9kWvxNSr8oeRiZS9qvd9hozHTzLE8vWr3gfsl+hLwQ02rsWpiejEqCupsY0eKdZ4lQfwPV3/oRMq1AeCJlGlARoJZ8vWgc3BxSEcLSbLC6N2CDAR4cSWo9F6o9Mvrz530wSHlsj9g8k5dhCZnnoo6OakzG+S0UEBVjLHhf3tbIxfVqeXcFVMB/dL0Tfo9cLBnksH2AeVeeX+fzNJfFXQvimPtxk678aTSAHknMivdbvb5PR/nQ9vHNpncTEUfszPnKwTLO+cJfanub6aWlSG9cUspoiChTPT9+663vWhWAUv6fMQ4f0IdwmVqGbXH/b4V0rS5pXpWTzyEFQHgmFCWcSB3wIw7JRPbyuuyF2bpY1B9alMP5GFT6eVrb/L09EONkaxna4cDzf7Pf8Oe0RjpVuqRtelqOclZLnY2zCf8gt8WZh0jGvewNeUbSz3P6hERcepSjwClc3Fw7JZOfKklglApgcD4XT3R2NVU+44+4ewM3bA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2df4b8b1-a551-4bb0-4bf3-08d9ab9128fc X-MS-Exchange-CrossTenant-AuthSource: AM7PR03MB6660.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Nov 2021 19:16:59.8066 (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: AM6PR0302MB3317 Subject: [FFmpeg-devel] [PATCH 2/5] avformat/dashenc: Don't use stack packet 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: VcpfjP4cl7xw Signed-off-by: Andreas Rheinhardt --- libavformat/dashenc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index dd2b34afbb..3f28f5ad71 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -2342,9 +2342,7 @@ static int dash_check_bitstream(AVFormatContext *s, AVStream *st, if (oc->oformat->check_bitstream) { AVStream *const ost = oc->streams[0]; int ret; - AVPacket pkt = *avpkt; - pkt.stream_index = 0; - ret = oc->oformat->check_bitstream(oc, ost, &pkt); + ret = oc->oformat->check_bitstream(oc, ost, avpkt); if (ret == 1) { FFStream *const sti = ffstream(st); FFStream *const osti = ffstream(ost);