From patchwork Thu Jul 13 10:55:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 42637 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6da1:b0:131:a7d0:bc6d with SMTP id gl33csp2822401pzb; Thu, 13 Jul 2023 03:58:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlGmwsHZHT3HU5kaLB5ftNhJiDSDtxmxAtaQ22Y4PexqXN8XKJpSSAtLwHx2W+gu6rJJczMv X-Received: by 2002:a17:907:91c5:b0:991:f6d0:9bc1 with SMTP id h5-20020a17090791c500b00991f6d09bc1mr921472ejz.66.1689245898647; Thu, 13 Jul 2023 03:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689245898; cv=none; d=google.com; s=arc-20160816; b=a67oeELevMsORxpGK0bw2bEjESSaSmy1lWXd1AuPHQ7NVOuJQUuno723FZP75RVxg8 1r8K7R88vhUuc9Ip1gZE3hDY4mNZbE104fv8wFVvsqqJjzkYxkS0oeeSf8dv/J2MmjMk 83uxfL/oL3X8JggIPm2m8MXeCmi/XCJH2FMOFMLkLkQQOzHzmR3vAjFvkbqg8cUTRpXH VAXkSwsBiSU1McFqtJw7HofhC5BaI1vMSkLj176vKOT8rX1uaWfxk9wFiLhVUjQ7Ls54 dsRJamlDyE794nVz5ruQdJHbX4/DW1ABh6ax5x5cSmbt8tKUuIwCRRd/+nxSU3F59Lu3 J3lw== 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=RLTR6DS2s9gys1AgSI4NbtLQaDzFC9mGpjU2Hvae5tg=; fh=8ZF2QtiKOjBtyn9wuO2cMeZaLsE4aq02Bq77gGK61E8=; b=0e+5kfepuFMLFnVVPchANIOpkdphdbiMmwmP6brVlL0WKt+zt+f9N0awCNTLAq6r5r 0Nzxp/4ws+eW04AcykPexCSW7EvImt5D44POdr8QuFZsUSABG61bpoFAysMKdGTyIkQy dkFl85Z+EcbQv9xQTIYNea4EP4OIpDcwUFjI6p9YVMkfWvhB8i/PMvkTneExXvK5cbg9 VyaUQHph5YleXHpG0G528bKWQp+PSg+AzuJFpdYkm2UFm4nhmlSWKZ1S191p+sh8lpci S0+r7z8wbqZdfITmdPtX+DBy3VUivCsMaA1HzgmvFBbIgREAy22xJp3ounlPaj0ZZ7xz HH+Q== 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 cd18-20020a170906b35200b00992c25357a8si498150ejb.252.2023.07.13.03.58.18; Thu, 13 Jul 2023 03:58:18 -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 12B5468C675; Thu, 13 Jul 2023 13:57:52 +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 C40D068C631 for ; Thu, 13 Jul 2023 13:57:43 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 903E62404EA for ; Thu, 13 Jul 2023 12:57:43 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id rhVkbERV8Arw for ; Thu, 13 Jul 2023 12:57:43 +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 7344C240591 for ; Thu, 13 Jul 2023 12:57:41 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 2B4793A1251 for ; Thu, 13 Jul 2023 12:57:35 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Thu, 13 Jul 2023 12:55:25 +0200 Message-Id: <20230713105553.21052-5-anton@khirnov.net> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230713105553.21052-1-anton@khirnov.net> References: <20230713105553.21052-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 05/33] fftools/ffmpeg_demux: add logging for -dump_attachment 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: 9VrmDLxouwg6 Makes it more clear what was written where. --- fftools/ffmpeg_demux.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index 498830098d..ab99daf9f8 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -1288,6 +1288,10 @@ static int dump_attachment(InputStream *ist, const char *filename) avio_write(out, st->codecpar->extradata, st->codecpar->extradata_size); ret = avio_close(out); + if (ret >= 0) + av_log(ist, AV_LOG_INFO, "Wrote attachment (%d bytes) to '%s'\n", + st->codecpar->extradata_size, filename); + return ret; }