From patchwork Tue Oct 12 11:02:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zane van Iperen X-Patchwork-Id: 31082 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2084:0:0:0:0 with SMTP id a4csp4645845ioa; Tue, 12 Oct 2021 04:03:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTmRsq9PcBvcDxU7Fx+fX+lULiBKOnS4Pn4BwKoprfDU1ADlFx4LVxlrAytq9pN27ZyKlK X-Received: by 2002:a1c:9a4d:: with SMTP id c74mr4604946wme.139.1634036584209; Tue, 12 Oct 2021 04:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634036584; cv=none; d=google.com; s=arc-20160816; b=P1QLPYEo5xTYgKVyY2XAcph0vHxG3L5WjnUCge+hdcrrNGO+RmyKHZZ7DOkkIHFqZG J41/AIwVzkf7SefZfrsLcPLo4h2vk2uRVO3Du1eemvjVEfVehetWIASJ+T2iOSQto5wT nQaCzvaUawHMqKf+Zs9dKHzI39Cu64JL+m5iDMFZ/rjrbT3o65psMuGLma62lt/ZTTBv yyUx9Nvl3mnFbT1nQLgQDpChK4qGdA26nFfOQ5Kc7x1qulwWRaSZklckCHPWqJXFYjiv hxga220SuP/mlGHPH5Lltscam5GC0gYo28b/C2HB/Lnz1RIGfqDepH3quFcJeeu5Cn9T 4Few== 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:delivered-to; bh=mFcI6DDBpZK/yzDNhLLcWL+dcZt23oeXXQFcMV2bIgE=; b=WtIF1ELP7G+mfPcKXqsVBI7FUda63d3TqGW4y17X0giSCTXabawmXYoSczxoxnzMyr mHRrNNmFXDNGk375HDoqmNlBt+kTSNbcAf9ZyDi/8mwEIWEmeEgfx/U3EN9Dcq+K7o8p j7fwydeKfyEMjA4UqyP5NsV7MwrRY9RFbO21CiKNlTQs/Bnv+QGucOpMyWLHdgTBobPM OV3i4aKWm21PaZp0LHaUftmqKFrQpRmo11qAFllNc51BEB4IDNc0Oz50wgXqZgEVfvX8 4QBk9gNXd/FenT6ygDtZDt7jN7Ixn0Yw/eCEI3/Gkg/lptP0OX5Y8uUpk1m4bTmqFc4w 6ooA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zanevaniperen.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id v21si10197650ejc.253.2021.10.12.04.03.03; Tue, 12 Oct 2021 04:03:04 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zanevaniperen.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CCC1A68A776; Tue, 12 Oct 2021 14:02:45 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from out10.migadu.com (out10.migadu.com [46.105.121.227]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 152E268A631 for ; Tue, 12 Oct 2021 14:02:39 +0300 (EEST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Zane van Iperen To: ffmpeg-devel@ffmpeg.org Date: Tue, 12 Oct 2021 21:02:23 +1000 Message-Id: <20211012110224.639056-2-zane@zanevaniperen.com> In-Reply-To: <20211012110224.639056-1-zane@zanevaniperen.com> References: <20211012110224.639056-1-zane@zanevaniperen.com> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: noreply-caprica@cadance.vs49688.net Subject: [FFmpeg-devel] [PATCH v2 2/3] avformat/argo_asf: pass name through as metadata 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: Zane van Iperen Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: IV+KLr824KM/ Signed-off-by: Zane van Iperen --- libavformat/argo_asf.c | 2 ++ tests/ref/acodec/adpcm-argo | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/argo_asf.c b/libavformat/argo_asf.c index acf30839b9..740680ece1 100644 --- a/libavformat/argo_asf.c +++ b/libavformat/argo_asf.c @@ -209,6 +209,8 @@ static int argo_asf_read_header(AVFormatContext *s) ff_argo_asf_parse_chunk_header(&asf->ckhdr, buf); + av_dict_set(&s->metadata, "title", asf->fhdr.name, 0); + return ff_argo_asf_fill_stream(s, st, &asf->fhdr, &asf->ckhdr); } diff --git a/tests/ref/acodec/adpcm-argo b/tests/ref/acodec/adpcm-argo index 127153c081..4032a8f1fe 100644 --- a/tests/ref/acodec/adpcm-argo +++ b/tests/ref/acodec/adpcm-argo @@ -1,4 +1,4 @@ 14b2507d14e95c20bb7ae49b4fcbcbf1 *tests/data/fate/acodec-adpcm-argo.argo_asf 281190 tests/data/fate/acodec-adpcm-argo.argo_asf -cc5e5c695adeaebaa2b1f0df5ebd59ee *tests/data/fate/acodec-adpcm-argo.out.wav +446f28460bdb7ff4361cf7d82ac22c3e *tests/data/fate/acodec-adpcm-argo.out.wav stddev: 1542.05 PSNR: 32.57 MAXDIFF:59667 bytes: 1058400/ 1058432