From patchwork Mon Jun 7 23:04:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Diederick C. Niehorster" X-Patchwork-Id: 28133 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:b214:0:0:0:0:0 with SMTP id b20csp3886540iof; Mon, 7 Jun 2021 16:05:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+oYxLGEtKST1aC4KRSpsuVRefmaU2WNmZYHB/Up41clwB148MFL0IOSjJAcJWYTbpHjmj X-Received: by 2002:a17:906:68c1:: with SMTP id y1mr20084972ejr.32.1623107151825; Mon, 07 Jun 2021 16:05:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623107151; cv=none; d=google.com; s=arc-20160816; b=G4U/EvMtn7wTDX3BkTCxepkGpgTklJxktV3fE9BVoLrSzB0g2e+nhXgU6gI3fPOiNA MC0RJpbCGtdafclNCZyYn44wOvqO1TJGlLbIX6J/vXE68ifmuCtqP+wfdU731oE0qJVq nNKKpHLeJ2jUlikFxt4/BsTa5/lRAc/DNJ2jpGZWVSUwqQa45moFIqX8Z5Q8LR7/4NVW RIphV71M9xJS77Tgbrm5N9Jwvpts+ROQ2RnGvgXXiD9XoNZTKSntQYGTAUzMqigS/XTc PcanY6brOZcUFdnC55TI3LRilaROb3t0yHL3pTuTtq8U7AX5/qU7kcZAf864JrchmQvp k3pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=HsqzSy6y3KLiEuNc4+XkKbJ+RHJnPW9Ms5VCXFktlqo=; b=VDWaXbKF4vXRDIaZikKp4szAlqSZ6iqLZBK5GQl6ChUQ8E8l3nAOWNXhvCSfuuVMXs u1FGUxlvCXYeIpdZv9V9isOIB/fwlAtz7wRgbef9CSVdTqRfFvUrowQNQ2TAahiUNzqJ sSLwUSoh3FFklw/BDhaGxUOy2hcomgAdGjyP4ziq0cVxlf2kzOFrDLzejROBkoOCRSDh NZ2QNzQ5oxoWYu9EHPeFsVZgkiUmB4SC9YZkRTv1sFQ9ddLaQ5BZzdF7DMQpkrmrirkO KA8cMVsIbDH96f3LIPAukpXNRxP1hYpNw98blG1jK2t75dqeXuXH8iGWio2tAhEF7uFK UwZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=m+h2I3f7; 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=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id m19si290552edc.271.2021.06.07.16.05.51; Mon, 07 Jun 2021 16:05:51 -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=@gmail.com header.s=20161025 header.b=m+h2I3f7; 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=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1E685680987; Tue, 8 Jun 2021 02:04:53 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7EA8768094F for ; Tue, 8 Jun 2021 02:04:49 +0300 (EEST) Received: by mail-lf1-f47.google.com with SMTP id p17so28209780lfc.6 for ; Mon, 07 Jun 2021 16:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2reeoo50ei0GRmk7xSiMdED0daVl9VtBSGL5UJ2+viY=; b=m+h2I3f7GJv4fsNpVGVrsLvcQ6KhIqGdpcDnn+Y/35dHEjP0R4Nd5iXjQH/poZGqkg aKDGaWem3BT00gJJgVB8/tWuJ2CalyUPtYzN7dxE6QvxseFIBbMM3d4XwDHej/N0HWus eGmkSEJj8AHaSRzPDNGUeTYdXbdBIcltQ8WdwgN8oMBbpMwMT8+EtSjr9sjO9cWYzlED 9bU3fPX6duziaE5KO/txAhVb/I1R5yLevo8dhI/dCKWmMb1hSUxc+XXX5QZzIb6U21nG DG8gIFbzj14rBtgIPCM4zUQccWPs190Lb5Id7WHthakKP2w0A7HW06yIZljXCi/Fy+8z HBlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2reeoo50ei0GRmk7xSiMdED0daVl9VtBSGL5UJ2+viY=; b=HdqKAYpQiJzrBb/beVq3ucY8JG8ufYk0ce+xAAVbo2KP0xWBym0WuVE4p5jg46d62/ hYSxanAsYI3XJTZuf8hk2RISUkZOxKddEZtJKwBehIW1vk7oMsgZiQ/1hNAGr8LCetCf cmmpA9GrJTzpM+++1H5DRKK/zM6dERH+GTnMGJ4JEMp+zP0gSKEfEJoNdEWWSEZtmdmj dlrnBNBVo8nHVb5k6RBM5dfLvMNtsCCCCDmNbRtBSqRZzPuq+l6+wYyhxSymyDEyHkh9 YxXehq3WNqPuEmtjv8RGab5JoGWjgi+VUfzTpxxALbKL1Bs4JPgOQVCahpXMsgbWMHD0 pOBQ== X-Gm-Message-State: AOAM533gFzRlpV2SQneHE1yxUTCOichPEaDZjYPoIQNGQLE/t8hvh21P fSiwftpLjf1/9rOVOmRgxZfP0gB9oQtRJg== X-Received: by 2002:a19:645e:: with SMTP id b30mr12166689lfj.577.1623107088470; Mon, 07 Jun 2021 16:04:48 -0700 (PDT) Received: from localhost.localdomain (84-217-56-54.customers.ownit.se. [84.217.56.54]) by smtp.gmail.com with ESMTPSA id v9sm1999563ljv.131.2021.06.07.16.04.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 16:04:48 -0700 (PDT) From: Diederick Niehorster To: ffmpeg-devel@ffmpeg.org Date: Tue, 8 Jun 2021 01:04:02 +0200 Message-Id: <20210607230414.612-24-dcnieho@gmail.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20210607230414.612-1-dcnieho@gmail.com> References: <20210607230414.612-1-dcnieho@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 23/35] avformat: cosmetics 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: Diederick Niehorster Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: bQpCcMJsl7Ug Signed-off-by: Diederick Niehorster --- libavformat/avformat.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 12197465bc..5e1e82a315 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -530,6 +530,7 @@ typedef struct AVOutputFormat { int priv_data_size; int (*write_header)(struct AVFormatContext *); + /** * Write a packet. If AVFMT_ALLOW_FLUSH is set in flags, * pkt can be NULL in order to flush data buffered in the muxer. @@ -538,7 +539,9 @@ typedef struct AVOutputFormat { * data. */ int (*write_packet)(struct AVFormatContext *, AVPacket *pkt); + int (*write_trailer)(struct AVFormatContext *); + /** * A format-specific function for interleavement. * If unset, packets will be interleaved by dts. @@ -577,17 +580,21 @@ typedef struct AVOutputFormat { * @see avdevice_list_devices() for more details. */ int (*get_device_list)(struct AVFormatContext *s, struct AVDeviceInfoList *device_list); + /** * Initialize device capabilities submodule. * @see avdevice_capabilities_create() for more details. */ int (*create_device_capabilities)(struct AVFormatContext *s, void *opaque); + /** * Free device capabilities submodule. * @see avdevice_capabilities_free() for more details. */ int (*free_device_capabilities)(struct AVFormatContext *s, void *opaque); + enum AVCodecID data_codec; /**< default data codec */ + /** * Initialize format. May allocate data here, and set any AVFormatContext or * AVStream parameters that need to be set before packets are sent. @@ -598,6 +605,7 @@ typedef struct AVOutputFormat { * Any allocations made here must be freed in deinit(). */ int (*init)(struct AVFormatContext *); + /** * Deinitialize format. If present, this is called whenever the muxer is being * destroyed, regardless of whether or not the header has been written. @@ -607,6 +615,7 @@ typedef struct AVOutputFormat { * This is called if init() fails as well. */ void (*deinit)(struct AVFormatContext *); + /** * Set up any necessary bitstream filtering and extract any extra data needed * for the global header.