From patchwork Sun Apr 9 14:08:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 41068 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4645:b0:e3:3194:9d20 with SMTP id eb5csp1592485pzb; Sun, 9 Apr 2023 07:12:57 -0700 (PDT) X-Google-Smtp-Source: AKy350aAvBZkKpL9buUyRUuCi8vMovAnoI4TYeqDJwXJCD2aInROPsEXKtzvjXb2NNwkZTFTek+W X-Received: by 2002:a17:907:3f1d:b0:94a:8a82:9cab with SMTP id hq29-20020a1709073f1d00b0094a8a829cabmr437314ejc.42.1681049577046; Sun, 09 Apr 2023 07:12:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681049577; cv=none; d=google.com; s=arc-20160816; b=MT300aC9RIXs5WYrc//ZWkYGDLDlUcuWWfffficU7CCeb69f2PbHyW7zzXzuwTGmO9 ctvnNqVSMgCMFdKN/K/CO9F0M+IRIZJq+qbOm659vj5s/GrppHiGTl44S7XU3izZeGRQ LjX2E9h1cBHdGErJ8fGDWVerOPdY3XHc9Me2/YsJCiXpKn4UQycCSeiQE0dzhaPDQYsn 3aQkb/jFSDC3IADjFF2e6C60IztWTNVcxVrqCudLcuqLUXhJFwFiftlRy589L2D7S5cs UrITrixvF/+JMja07PRxpCdn9wWLMdiT2WtnNxXhnj+Fj9jtj396JAXr9MWMzmURz6Ry HGCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding: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:delivered-to; bh=6kPZ0RLHMbl+ZRijDDzcEnNgzlNqrzLvd2N98/E9tZQ=; b=D5fEu9s5P62k2R4BBNqurjYjjId2sKBtUNIgXQ5g3wQYzwIYHEjdE9EMYNA9PK4EkW cGpppANlTXcaDLQaQniJfGK0alV4Non/Uqe/GfN5PRI/AW8Y5lQ9shGY09HauUHqDNlt dMld3wMrzVzVPZnobFuENKArO2wle9FOEnBRry4Kzp+kdDg4lbwIHWNrkqotIzrgWdAV DMN06BnjylGXatT8iJvgfIs9xxE2K2Gumr6MstJ+yT9fTvEf1n2VqR1edcmOvrETKPHH e+zxBFM0P6M44rCub/06WFdDtI8Hr5y187kRdv2T60bIZtZ8qVdk3fPdos+YWEcPLemt syJg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id gs15-20020a1709072d0f00b0094a5d495ca9si2661872ejc.249.2023.04.09.07.12.56; Sun, 09 Apr 2023 07:12:57 -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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0C84968BDA6; Sun, 9 Apr 2023 17:09:42 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0812768BB52 for ; Sun, 9 Apr 2023 17:09:17 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 6C1312406CC for ; Sun, 9 Apr 2023 16:09:14 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id SafpnSdH2-nI for ; Sun, 9 Apr 2023 16:09:13 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id 520242406CD for ; Sun, 9 Apr 2023 16:09:10 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 426813A03E5 for ; Sun, 9 Apr 2023 16:09:10 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Sun, 9 Apr 2023 16:08:36 +0200 Message-Id: <20230409140853.28858-12-anton@khirnov.net> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230409140853.28858-1-anton@khirnov.net> References: <20230409140853.28858-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 12/29] fftools/ffmpeg_mux: reindent 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 4pxQDNqolgL7 --- fftools/ffmpeg_mux.c | 56 ++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/fftools/ffmpeg_mux.c b/fftools/ffmpeg_mux.c index 5acd3b9b9d..f3a3a9b7a2 100644 --- a/fftools/ffmpeg_mux.c +++ b/fftools/ffmpeg_mux.c @@ -639,37 +639,37 @@ static int check_written(OutputFile *of) static void mux_final_stats(Muxer *mux) { - OutputFile *of = &mux->of; - uint64_t total_packets = 0, total_size = 0; - - av_log(NULL, AV_LOG_VERBOSE, "Output file #%d (%s):\n", - of->index, of->url); - - for (int j = 0; j < of->nb_streams; j++) { - OutputStream *ost = of->streams[j]; - enum AVMediaType type = ost->st->codecpar->codec_type; - - total_size += ost->data_size_mux; - total_packets += atomic_load(&ost->packets_written); - - av_log(NULL, AV_LOG_VERBOSE, " Output stream #%d:%d (%s): ", - of->index, j, av_get_media_type_string(type)); - if (ost->enc_ctx) { - av_log(NULL, AV_LOG_VERBOSE, "%"PRIu64" frames encoded", - ost->frames_encoded); - if (type == AVMEDIA_TYPE_AUDIO) - av_log(NULL, AV_LOG_VERBOSE, " (%"PRIu64" samples)", ost->samples_encoded); - av_log(NULL, AV_LOG_VERBOSE, "; "); - } + OutputFile *of = &mux->of; + uint64_t total_packets = 0, total_size = 0; + + av_log(NULL, AV_LOG_VERBOSE, "Output file #%d (%s):\n", + of->index, of->url); + + for (int j = 0; j < of->nb_streams; j++) { + OutputStream *ost = of->streams[j]; + enum AVMediaType type = ost->st->codecpar->codec_type; + + total_size += ost->data_size_mux; + total_packets += atomic_load(&ost->packets_written); + + av_log(NULL, AV_LOG_VERBOSE, " Output stream #%d:%d (%s): ", + of->index, j, av_get_media_type_string(type)); + if (ost->enc_ctx) { + av_log(NULL, AV_LOG_VERBOSE, "%"PRIu64" frames encoded", + ost->frames_encoded); + if (type == AVMEDIA_TYPE_AUDIO) + av_log(NULL, AV_LOG_VERBOSE, " (%"PRIu64" samples)", ost->samples_encoded); + av_log(NULL, AV_LOG_VERBOSE, "; "); + } - av_log(NULL, AV_LOG_VERBOSE, "%"PRIu64" packets muxed (%"PRIu64" bytes); ", - atomic_load(&ost->packets_written), ost->data_size_mux); + av_log(NULL, AV_LOG_VERBOSE, "%"PRIu64" packets muxed (%"PRIu64" bytes); ", + atomic_load(&ost->packets_written), ost->data_size_mux); - av_log(NULL, AV_LOG_VERBOSE, "\n"); - } + av_log(NULL, AV_LOG_VERBOSE, "\n"); + } - av_log(NULL, AV_LOG_VERBOSE, " Total: %"PRIu64" packets (%"PRIu64" bytes) muxed\n", - total_packets, total_size); + av_log(NULL, AV_LOG_VERBOSE, " Total: %"PRIu64" packets (%"PRIu64" bytes) muxed\n", + total_packets, total_size); } int of_write_trailer(OutputFile *of)