From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 4712B4298F for ; Sat, 7 May 2022 11:33:24 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D128D68B4A3; Sat, 7 May 2022 14:30:32 +0300 (EEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-oln040092073102.outbound.protection.outlook.com [40.92.73.102]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4196368B3D5 for ; Sat, 7 May 2022 14:30:29 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bWGZX91WAlsQtl6Sd2+HvZh7YQTU6/pAuLQn9oD5rQ09bOj5jGblYG9fq+l0+dBGo64WfCStjTyu5I6V0nWyzw9SoWLxn4oHQOTdQnjgnMVZ1xTXeVxqT/podWrN7bAEfaYR5MsAufG9Sai9Y2zBL/fdbHcrnRkBAiUCarHabCRJChG2wiq1vy2+chZx9R/7pkBq0LzhMhTXYCsr4cgvl6E3kvqRtMQQ1zRNVpMNvvgqkk5GHUminmChyDXZir8L1kS1qx+6v5fJW9UX8V4+F5sCBfuBce87BBBcU87ipqOgiAW90/rYHrApHMOsPVerCNMju+F3/VMiZkcfsmCo3w== 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=JY8/CHGv8Wzkj9V+EVkPcoHFhpsGI+nKNtek1BLxOXI=; b=NLooF/h6/+JOtaMd3UOeZLk8AnAoMZbQINYXu4zqH9svArRHDYEGXfOXcvL4RaJVqA6L8EAnHMKzt6LIu4gYkzyVvrbnZLAJHzTVfIagejk08WAus0kODzn7ePwVl61EoyY6YrWvHGb3Ih9YIay7OCMo2NCOL3MiAJuM/JXyNZvkuBA+LBhaI3eXi0oZI3whUenHU3w5hxghsAym/1G3Gz1z3kSd3tnvpOA9JMIgLY2ae3O7pUdZ4P8B4CVe7D7TDzQRqOmn8WmLHzlJYEC6jjf1XRAWUy6lUkOkMYQ/rLTK4zqfWY9sWzMyBF8sBa4WvWKBm0Amaiut8mvd6OgKsQ== 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=JY8/CHGv8Wzkj9V+EVkPcoHFhpsGI+nKNtek1BLxOXI=; b=Zcg+JGpmvIEwAYHshWskxZHHhm2SF+LDKhemt/jm+/WyABF9f5Gq1akdrGevaYnfJPYFQKS3+BnbuGZ7s55KjylmTMoa29MGSuK3kInI/r0FIiAcoBECp4YcHT38DFi2CHTwu5H2E+HAzKCYRTUOujq7a/giYlCyfrCg5T4kU1NrRXFpTeWTJ0r+pi1X6z4j6hO/7ccQCO6pRlYM3TLz6H/uzVGfzId2uibwW09+67adpYIEUyQfzPOAQL8O9qGypN2ku5dirdlXknwAtliu+4TqsvqAk+78vpWLgsR/bDxqmExnrb8TqbEvz3ZxS7MOdanmViTy+s1X0sTNtfuvDg== Received: from AS8PR01MB7944.eurprd01.prod.exchangelabs.com (2603:10a6:20b:373::5) by DB6PR01MB3895.eurprd01.prod.exchangelabs.com (2603:10a6:6:4b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.24; Sat, 7 May 2022 11:30:27 +0000 Received: from AS8PR01MB7944.eurprd01.prod.exchangelabs.com ([fe80::1854:2c30:7ba1:c431]) by AS8PR01MB7944.eurprd01.prod.exchangelabs.com ([fe80::1854:2c30:7ba1:c431%6]) with mapi id 15.20.5206.024; Sat, 7 May 2022 11:30:27 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 7 May 2022 13:28:14 +0200 Message-ID: X-Mailer: git-send-email 2.32.0 In-Reply-To: References: X-TMN: [S58AJ3fUjFShe2oMTU5TpE3DCJLMEb9n] X-ClientProxiedBy: ZRAP278CA0004.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:10::14) To AS8PR01MB7944.eurprd01.prod.exchangelabs.com (2603:10a6:20b:373::5) X-Microsoft-Original-Message-ID: <20220507112830.406162-27-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 973457bf-284c-4e95-b62a-08da301cfbcd X-MS-Exchange-SLBlob-MailProps: +LiGfBxqLEvwPxT+mwCURHm2qGG32agMMbTKXHPACmNKK8SMRlx6LjXOabTvaPTxqaKhdQfKqZ8/x7FYv71qdcy+eIvh6OlW92lZPSMFaKpbXryeWcYKhw/hf3vsbfYSIKpt4A6Vf6bIvjF2udXFIJK3tm6zwGXZZJ4WClEagqzMXJyJtEmeZ9AGveF138/8G1zO1e6FSUuPr8mfgAiGaeYk76NxqOH3Pp4EyG2P/rSzYQrl0lVQsxFOisQmV/qHAzEd8eerMl+nEQwH1ir/mk8fmYWC67NqJBz20F3mO14VdGKzZ9j2lcUHBWtMTcNN5XG+q6sAThZFuDmm5yGEpt2usKsTFbjNFS1apFMv6MpIE1Ynda0e/kkBidfWboEWfdMDR9R3yFkKCH90xbvjC97M8k07KbsmZ0OIgK29lEUxEF/BlGqDrIh/GWAA/MImJsNLeJFBpLHdfKpXSUtFWLke0r1V3R90/OFeX8qdMO0g+XTeyzBqykrBaLv0YKU+k1WxUoGaUKpFXIT2670+GLeOs07w9vwcXWnGuDtOxiGkjQ9eordPuMN9DDzCzP1vojqPUl3YAafOaJLIoOtB1QKZ4ocEi8dMuLWUZ3uSGovYLziyHmQgJbUD6KJimjTYFlSnLID3ZD+72OqZoPHXxNcDCiFMm4x4h7F3uALFRGg9FqJlKDu48+0dQDNzjoM9hD5MtxPnjOALBII6cLk+o6zkyU2UICy6MlMNj5sn5rLu105mCPtsVQsEKMRjMpic6lVUGvdt3x4juG+2mMr8aydgwpYgB7ax X-MS-TrafficTypeDiagnostic: DB6PR01MB3895:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6u6rgjCIxM7S5LQ26l3qcoV6bojNxTRiU+O35ltwTlZ0J2OUOWXylnFG5aCznVSxzDooT3L2ZKoO0eOy3JcjRe59hk0hEmw6YqixmT0H9FX6vyS4FYd0wU5bOV+0F6Jckq6WM7niT8dqJhe/KX7mNPIXusBwwhv3aw/b66k2iOohbToX/vC2dJCJBB+RruJvWW1bfOPi9IeRnVgbQJh3pnoKrIGxbzlcDzE+h/PZ3gsZ0wZ1z6o3I7Ds7hdIWev1q9SDIz15yN2v4OtxOKlxycl2WfoajiC1kAaKmG6vUrosRLBedBFmrN5zJkiXKpTtrvWWuC73D/IaCKBKUalaxHx/6o+zjECJBs3AyS5kgw2GbB4CIG1FDLrF3GEoEq4fkgPBKENw5buz0AydEgrHYGiHgRxD+EaDwpujigDCyNLrTCMIUij3FZdSoG0hhbdQ/RJG5o/ypDFX/1WE1SHCXcJGdINAXa9aDs2VhWF6H9PJZj5qn04l8NEh2jHFrPSCkn0JLVkFM46k2eutmCvdApJP8DzgDf3zv3r8oam8So8gpex+PNunkR+RBlUJYkP7yGHsiNtvEOI6voxlfmECOZn6MQNm5+GnWcQ8bFRSR/AeD1yLgLQh+u4INHG/E5gW X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?o6dKaBvzUpIX4CZssrYQk6jGgYjyb/jzAGdT1q1TK8A2Ek59Y7xtj2XwPYf3?= =?us-ascii?Q?eThWkS263/c43D0eN/hVqECazivhfQV+8aR+L/1dmK5ecFVcHcDStplaQOb8?= =?us-ascii?Q?bLJrxkAsifptpX76DvScaT59z4n08feVp45arRr6zs2w7smUKuforiaGIWYF?= =?us-ascii?Q?XVwr8gJKX6jBnBM7h1EXVk9J04oVt5El9L98epC/44EyeY8GrAkusU/u8yxT?= =?us-ascii?Q?dKTvEAqiooIsCsa/uTMkR9iRbxjlDWLH9Kp3CJd+81n/MkVL4W5t9lxtYxAb?= =?us-ascii?Q?IIxkyny02JfnVBup0opDdbtuhaM1dxvh1YSZH3ttGCrRJ9JrSDHbHd6A9POu?= =?us-ascii?Q?Oz5WC3ETa1mDbHohH4+8WKlnVQJdV68E1wnh75wYw/N2E2IaWPD3HrUB97Y+?= =?us-ascii?Q?FFxwp3+GOqx4JV2lwJnK5N+ZoZdbCOcs9cdc+qxy28Cyp5+XNmLuJg3WUOth?= =?us-ascii?Q?EOd92542C/wv+4fsLzeGoUwTjE95fbfrlGY5RmVbKAXcHYJlkrnvTPuakn+U?= =?us-ascii?Q?PWEZGD14KvQ1H658bfYygI2FghzComx7y3/fzeJ1YLy1jV8/Fa3b42siKytI?= =?us-ascii?Q?Da2JVO+5SNq5d7dbgf7MX1lRSAlJSQhRhBh3KgCMvMZYwBsXrmK19tz8rQa3?= =?us-ascii?Q?3x2MCHEUqO6mIdhZvos2mfcrco/0HkccgDjd7Uj2BQqQmFOKoX+OWML2ypXk?= =?us-ascii?Q?2vo3wh6I6h7taqxrgBxkyt544mzyGZ8T0I5ktLTMSU6Pp0kX14PAWGLXO3CO?= =?us-ascii?Q?IhAl2K44fAJq8qQ586sX7e8ueVgqY9aJpywhjPhj9S/QvTa83DvkyMjovKHg?= =?us-ascii?Q?K6f2jGQXISq9Ttk+mJgGXACu6/h4ZxbHs7VqZSJZgA1imwKLy83kVjx5Y+Y/?= =?us-ascii?Q?6zQyg4AtaAcfbmp3vHdHi7Ff7y/RpCR7eHzYuCIShWdYlLYs6GeM07i2Vmy3?= =?us-ascii?Q?AqI/lOsIkIQFJj33y5NgqtyYLkuKbVBRCWy616+g/f7PDOuNz1OPMp1Gficb?= =?us-ascii?Q?mUXQCjeYtCJzBnxsSzsyiTlnaG/L7oj052C7+0If6sUhbmTDrKq3/k/gYn75?= =?us-ascii?Q?N1KWR71D6aCwpHv/2B77GD4GG9uXnr1GJ2mm9R7D38KsFHhgdg7qKtxsh5aW?= =?us-ascii?Q?0CWHRz6c3rdt7JNRcM+9J1jbsRjkw+lVKumuNlfNc++8it+3y9LSnIzCPpJh?= =?us-ascii?Q?heXuci3J7VfvEPAZuMP71NG5zwvC+j/NRoStDLFXRxonIjCfnHpHj92fujRU?= =?us-ascii?Q?FpoBx8g08qAnmcXFSKmNFkkgcPO0MzoxiGeD2v1ARrBPHTgj81mSQXhvpYTt?= =?us-ascii?Q?jo7i9CiZh3vficlMcHZuqTccvQkfQ4WCqyhruXrN06CURBYFFtO+BR4tOa8S?= =?us-ascii?Q?PO20OwN1DkYQfgM5eTfswija9EWP43a/tyyiYnQIugMtRVDNiqM3mz55GlYW?= =?us-ascii?Q?5Fd1WXFXncMWu/Ae4e2FLTT0ARudga2g?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 973457bf-284c-4e95-b62a-08da301cfbcd X-MS-Exchange-CrossTenant-AuthSource: AS8PR01MB7944.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2022 11:30:27.0001 (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: DB6PR01MB3895 Subject: [FFmpeg-devel] [PATCH 28/44] avformat/utils: Move freeing AVFormatContext to a new file avformat.c 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: This file will contain the AVFormatContext-specific parts that are used by both demuxers and muxers. Signed-off-by: Andreas Rheinhardt --- libavformat/Makefile | 1 + libavformat/avformat.c | 130 +++++++++++++++++++++++++++++++++++++++++ libavformat/utils.c | 104 --------------------------------- 3 files changed, 131 insertions(+), 104 deletions(-) create mode 100644 libavformat/avformat.c diff --git a/libavformat/Makefile b/libavformat/Makefile index a03fd7f256..7fd6d099b9 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -7,6 +7,7 @@ HEADERS = avformat.h \ version_major.h \ OBJS = allformats.o \ + avformat.o \ avio.o \ aviobuf.o \ demux.o \ diff --git a/libavformat/avformat.c b/libavformat/avformat.c new file mode 100644 index 0000000000..88acae018e --- /dev/null +++ b/libavformat/avformat.c @@ -0,0 +1,130 @@ +/* + * Various functions used by both muxers and demuxers + * Copyright (c) 2000, 2001, 2002 Fabrice Bellard + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "libavutil/avassert.h" +#include "libavutil/mem.h" +#include "libavutil/opt.h" +#include "libavcodec/avcodec.h" +#include "libavcodec/bsf.h" +#include "libavcodec/packet_internal.h" +#include "avformat.h" +#include "demux.h" +#include "internal.h" + +void ff_free_stream(AVStream **pst) +{ + AVStream *st = *pst; + FFStream *const sti = ffstream(st); + + if (!st) + return; + + for (int i = 0; i < st->nb_side_data; i++) + av_freep(&st->side_data[i].data); + av_freep(&st->side_data); + + if (st->attached_pic.data) + av_packet_unref(&st->attached_pic); + + av_parser_close(sti->parser); + avcodec_free_context(&sti->avctx); + av_bsf_free(&sti->bsfc); + av_freep(&sti->priv_pts); + av_freep(&sti->index_entries); + av_freep(&sti->probe_data.buf); + + av_bsf_free(&sti->extract_extradata.bsf); + + if (sti->info) { + av_freep(&sti->info->duration_error); + av_freep(&sti->info); + } + + av_dict_free(&st->metadata); + avcodec_parameters_free(&st->codecpar); + av_freep(&st->priv_data); + + av_freep(pst); +} + +void ff_remove_stream(AVFormatContext *s, AVStream *st) +{ + av_assert0(s->nb_streams>0); + av_assert0(s->streams[ s->nb_streams - 1 ] == st); + + ff_free_stream(&s->streams[ --s->nb_streams ]); +} + +/* XXX: suppress the packet queue */ +void ff_flush_packet_queue(AVFormatContext *s) +{ + FFFormatContext *const si = ffformatcontext(s); + avpriv_packet_list_free(&si->parse_queue); + avpriv_packet_list_free(&si->packet_buffer); + avpriv_packet_list_free(&si->raw_packet_buffer); + + si->raw_packet_buffer_size = 0; +} + +void avformat_free_context(AVFormatContext *s) +{ + FFFormatContext *si; + + if (!s) + return; + si = ffformatcontext(s); + + if (s->oformat && s->oformat->deinit && si->initialized) + s->oformat->deinit(s); + + av_opt_free(s); + if (s->iformat && s->iformat->priv_class && s->priv_data) + av_opt_free(s->priv_data); + if (s->oformat && s->oformat->priv_class && s->priv_data) + av_opt_free(s->priv_data); + + for (unsigned i = 0; i < s->nb_streams; i++) + ff_free_stream(&s->streams[i]); + s->nb_streams = 0; + + for (unsigned i = 0; i < s->nb_programs; i++) { + av_dict_free(&s->programs[i]->metadata); + av_freep(&s->programs[i]->stream_index); + av_freep(&s->programs[i]); + } + s->nb_programs = 0; + + av_freep(&s->programs); + av_freep(&s->priv_data); + while (s->nb_chapters--) { + av_dict_free(&s->chapters[s->nb_chapters]->metadata); + av_freep(&s->chapters[s->nb_chapters]); + } + av_freep(&s->chapters); + av_dict_free(&s->metadata); + av_dict_free(&si->id3v2_meta); + av_packet_free(&si->pkt); + av_packet_free(&si->parse_pkt); + av_freep(&s->streams); + ff_flush_packet_queue(s); + av_freep(&s->url); + av_free(s); +} diff --git a/libavformat/utils.c b/libavformat/utils.c index 06401b767c..b3806fe87b 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -29,18 +29,14 @@ #include "libavutil/dict.h" #include "libavutil/internal.h" #include "libavutil/intreadwrite.h" -#include "libavutil/opt.h" #include "libavutil/pixfmt.h" #include "libavutil/thread.h" #include "libavutil/time.h" -#include "libavcodec/bsf.h" #include "libavcodec/internal.h" -#include "libavcodec/packet_internal.h" #include "avformat.h" #include "avio_internal.h" -#include "demux.h" #include "internal.h" #if CONFIG_NETWORK #include "network.h" @@ -188,17 +184,6 @@ int ff_is_intra_only(enum AVCodecID id) return 1; } -/* XXX: suppress the packet queue */ -void ff_flush_packet_queue(AVFormatContext *s) -{ - FFFormatContext *const si = ffformatcontext(s); - avpriv_packet_list_free(&si->parse_queue); - avpriv_packet_list_free(&si->packet_buffer); - avpriv_packet_list_free(&si->raw_packet_buffer); - - si->raw_packet_buffer_size = 0; -} - int av_find_default_stream_index(AVFormatContext *s) { int best_stream = 0; @@ -472,95 +457,6 @@ int ff_stream_side_data_copy(AVStream *dst, const AVStream *src) return 0; } -void ff_free_stream(AVStream **pst) -{ - AVStream *st = *pst; - FFStream *const sti = ffstream(st); - - if (!st) - return; - - for (int i = 0; i < st->nb_side_data; i++) - av_freep(&st->side_data[i].data); - av_freep(&st->side_data); - - if (st->attached_pic.data) - av_packet_unref(&st->attached_pic); - - av_parser_close(sti->parser); - avcodec_free_context(&sti->avctx); - av_bsf_free(&sti->bsfc); - av_freep(&sti->priv_pts); - av_freep(&sti->index_entries); - av_freep(&sti->probe_data.buf); - - av_bsf_free(&sti->extract_extradata.bsf); - - if (sti->info) { - av_freep(&sti->info->duration_error); - av_freep(&sti->info); - } - - av_dict_free(&st->metadata); - avcodec_parameters_free(&st->codecpar); - av_freep(&st->priv_data); - - av_freep(pst); -} - -void ff_remove_stream(AVFormatContext *s, AVStream *st) -{ - av_assert0(s->nb_streams>0); - av_assert0(s->streams[ s->nb_streams - 1 ] == st); - - ff_free_stream(&s->streams[ --s->nb_streams ]); -} - -void avformat_free_context(AVFormatContext *s) -{ - FFFormatContext *si; - - if (!s) - return; - si = ffformatcontext(s); - - if (s->oformat && s->oformat->deinit && si->initialized) - s->oformat->deinit(s); - - av_opt_free(s); - if (s->iformat && s->iformat->priv_class && s->priv_data) - av_opt_free(s->priv_data); - if (s->oformat && s->oformat->priv_class && s->priv_data) - av_opt_free(s->priv_data); - - for (unsigned i = 0; i < s->nb_streams; i++) - ff_free_stream(&s->streams[i]); - s->nb_streams = 0; - - for (unsigned i = 0; i < s->nb_programs; i++) { - av_dict_free(&s->programs[i]->metadata); - av_freep(&s->programs[i]->stream_index); - av_freep(&s->programs[i]); - } - s->nb_programs = 0; - - av_freep(&s->programs); - av_freep(&s->priv_data); - while (s->nb_chapters--) { - av_dict_free(&s->chapters[s->nb_chapters]->metadata); - av_freep(&s->chapters[s->nb_chapters]); - } - av_freep(&s->chapters); - av_dict_free(&s->metadata); - av_dict_free(&si->id3v2_meta); - av_packet_free(&si->pkt); - av_packet_free(&si->parse_pkt); - av_freep(&s->streams); - ff_flush_packet_queue(s); - av_freep(&s->url); - av_free(s); -} - AVProgram *av_new_program(AVFormatContext *ac, int id) { AVProgram *program = NULL; -- 2.32.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".