Message ID | AM7PR03MB6660FD0A117E8E403CB34D1A8FD29@AM7PR03MB6660.eurprd03.prod.outlook.com |
---|---|
State | Accepted |
Commit | bbc24363f137377376cea59a48affe7c556b8c30 |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2a4a:0:0:0:0 with SMTP id k10csp4067592iov; Mon, 6 Sep 2021 13:36:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1xwSuaTT6ljSrYEZ7W7DPEYKeZS/zfn5H69Xaj0+dhllDnexWD5iQhtDLIztcDb3HI6OU X-Received: by 2002:aa7:d303:: with SMTP id p3mr15067747edq.184.1630960567859; Mon, 06 Sep 2021 13:36:07 -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 7si9211610ejq.64.2021.09.06.13.36.07; Mon, 06 Sep 2021 13:36:07 -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=MAGSRydX; 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 BD12368A718; Mon, 6 Sep 2021 23:36:04 +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-oln040092068049.outbound.protection.outlook.com [40.92.68.49]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9EB51687F4A for <ffmpeg-devel@ffmpeg.org>; Mon, 6 Sep 2021 23:35:58 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EYm2K7bTA3WDes4IvvOPSNMAkKlbqssUgvg1kupYCvIqlO8Kfz8p4OomuxvLeWCA+RxwLHxYmP27awft8njJ3DDt8Ebb1eBppQqGJuldRXXqzWUPRKO0ibLVWICfPAo+56rDw62FQcJ89vpt9aT96fU4AIllHOlLny4Z44QEu5v1QrB2dKRRM1XNzCJHTlMtoP3hNSdzQ31cuZVzeQrNoWw7szTrcniDZtUQLThLrX/kT2JuTWP1BFUrGxcQXHNfJ25y89aYIcJ7CidWUlL5LrCIbFOBkS5PAtvs86o+j7AnYPIXho0FUnlmowkhnccYYzyL2tQoQyR0oZOSpeJRUQ== 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; bh=ZnZQtIHHcu7MR69ykY9FgmQlHFTrElYFuWEQBiYI6Jw=; b=i8JAPBd8R1uwMGacXdrvjrAEs/S39onDNBVkHYiWMCXNcQ0Rc94ZYTIEXbtb76R51Bv4GyESvy3Bb0DX4kUeMJaL7wgBTEpTf0tBQXd2/5o3oX5Si0CbRvZ2QsqopPHO1blbixiZshtARfWhzBvEk4bleFN7pj2wJRQWlxzRZ52WdL9h1mt3LzejCYktNae/ymaeebVrxJRt6km8kVXUT1zm4p9ZTgT3m7e6OMwL3XSj1Ybgw6cMRcxJhjD2odo3iGsPmirYVMkZOVLXSVw1Br3BiJjyf9KJDR3BcR83MBwOjQthvoTmbj8YLQsISZyJ8DEYxcOtqkNSfxJEvrrKiA== 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=ZnZQtIHHcu7MR69ykY9FgmQlHFTrElYFuWEQBiYI6Jw=; b=MAGSRydXe6ybLxHz5nXhLjcd6mqAQ4fRzeh0yeemmv+CoreB3/2pdRcwAfhZjjDearc77Dx/Ns5x2FII7RtTDBiVHIhajFM2dzTdH2Q03dTcIqyg09lmlnpYpLkYnEnS68t0Ftvbn/SbRGpHVBc8wrhhd31f+HsDFgkNT9zgw1CJBimmJEVWEpLOfSq3zVpHztQ1wHTMl6QUp7unkHbHSa7yikUolG1Z+tLe5Rh1KWNv5Jhx5nUWA4brnisWAW9wdJU5NlY/lOU5WpokwidKvQmchnomLdH2VfCBtD4yZeq5kXYJv4mEinGkYdOhXx2ZdrLSSubLhsCcmW0UoVfi2A== Received: from AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) by AM6PR0302MB3191.eurprd03.prod.outlook.com (2603:10a6:209:19::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.21; Mon, 6 Sep 2021 20:35:57 +0000 Received: from AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::787b:2156:ca99:fe00]) by AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::787b:2156:ca99:fe00%3]) with mapi id 15.20.4478.025; Mon, 6 Sep 2021 20:35:57 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 6 Sep 2021 22:35:49 +0200 Message-ID: <AM7PR03MB6660FD0A117E8E403CB34D1A8FD29@AM7PR03MB6660.eurprd03.prod.outlook.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <AM7PR03MB666039DF03143050157A60F28FD29@AM7PR03MB6660.eurprd03.prod.outlook.com> References: <AM7PR03MB666039DF03143050157A60F28FD29@AM7PR03MB6660.eurprd03.prod.outlook.com> X-TMN: [Af2GK3URD91aSBm4yxnrNUOaR/JD3yOz] X-ClientProxiedBy: AM3PR07CA0136.eurprd07.prod.outlook.com (2603:10a6:207:8::22) To AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) X-Microsoft-Original-Message-ID: <20210906203549.329402-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sblaptop.fritz.box (188.192.142.38) by AM3PR07CA0136.eurprd07.prod.outlook.com (2603:10a6:207:8::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.4 via Frontend Transport; Mon, 6 Sep 2021 20:35:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f8539e0d-fbdf-4813-10bb-08d97175ee2c X-MS-Exchange-SLBlob-MailProps: pxu8rxgqUghX9xqnxI6BunTTX7RJxOQ47zH2TyvFJEGng3r/S+a98hJ/EfNpOqCeJNUAknDkakjA8IOL54K3TnLI4s17VdZ41qKsVIS6lirTyIE4ogvy/VW/+ThHu9Kz86gan0xALC0kfd+4VgLcb4docFJunVjbdyi6l1OxwWQQiGB/eiRRC3xRO5Pfzo1mrqyEmTfkOU7p8+k0rsg1kJ0j9iQ9gy7zi2yXSz7uqSavqZMsKYxxnQcehlHY+hx8cKwpfIFthyjFYkubMLBV87Mq/BR197hxM8eOpnUsiB7sYRQXEpfxvYKZ9SF5R+RqTSeU+xKrku/CBRXr1fw0ODTNWlgAoRXbv+urMeFHhN35XroUmF2lCcWVCcfWbPcL7uyb0gkjsHqn4azeHL48jBkXpWR6GkJA4YuGvsHTRmmxAlae01plWNon4mciJC9Xmac8bHxqPftVLg2Oosh7OxeeLjCX9DDzaA1EMHgEfE+5eXeSlv5ev6k2JDVAMZSui5SuMLWQi46enPXOBqBH5vRalozK+eHAQ6C9NW28MLyBClTxv3cCWSPFG3nDFPFpotCHsEbwrDf2zH8pCOCFciIyMNZmmX+HCYP0nvRcR8XEC6W9FAL27z0lBHfwWyzlQliWSCJPI832J5f4PBNispPrrvd9qvl+9VXyHNEK7LHi6pI3iLuYR+qK03O1X1i+dO/YFP9S74ucWHtb1obvgA== X-MS-TrafficTypeDiagnostic: AM6PR0302MB3191: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zwpecl6S+rhIfXMZUcUnDeHbEn3XpQyDaPJpDTmIA3p2rafTZp6qGmlxtRjfWCAoM8Fu4NN4HR5/J7uQounFDGnNj8zXj6a3piphyTj6KuacGjG8Y8D2BYsbrMyyA8IxNY6hq6BWZVD9VEtFP1SH5MOW0GbL9kl70+XbBd31cBIfpLEWOSXEtc5Co04EgDZyq+kC8bOQkwF5LKurbBLhj7BqOyEEGj3+WNZ5liYHjyl85FXRywj87grN5+QoY8fExhCHI9tQqP9T26NerZovgCj2+T0wHzQW0LCcbFhXnkhsTv5Tf/WnRg2qHIubocbDUiq/l6V9ueVW4n5QD3xF7E4AVBZdlUNXAngV87a89p5cAV6xTgOmw1YaBpFOmdbKLMUCq+fz5YEdg+PIFY0x1YtdbgPouagcGguUbwc74zEnxMtsymipXnQ0YG9vJP3A X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PoZVrxkMOawOQNRNZlhtQD18FyF1GCL7jSdBGGBlAmdkIlwB2nC8gmlbDpECn0haV0B0eP1A4eUBAl2AWbIvLWhbX+CjYMzO4eyIz7925PADHL4r5oLBwGllcjwvklpDv2QqlNHSiZ8SmSOFcgtlgA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f8539e0d-fbdf-4813-10bb-08d97175ee2c X-MS-Exchange-CrossTenant-AuthSource: AM7PR03MB6660.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2021 20:35:57.3082 (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: AM6PR0302MB3191 Subject: [FFmpeg-devel] [PATCH 6/6] avcodec/bsf: Unref the packet when flushing 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: zhWRg0RYleVR |
Series |
[FFmpeg-devel,1/5] configure: Remove null_bsf dependency
|
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 | success | Make fate finished |
diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c index 3420885e5f..212f398210 100644 --- a/libavcodec/bsf.c +++ b/libavcodec/bsf.c @@ -201,6 +201,8 @@ int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt) int ret; if (!pkt || IS_EMPTY(pkt)) { + if (pkt) + av_packet_unref(pkt); bsfi->eof = 1; return 0; }
The documentation does not require the packet to be blank in this case (i.e. it can now contain opaque_ref), but it does contain that the contents will be reset upon success. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/bsf.c | 2 ++ 1 file changed, 2 insertions(+)