From patchwork Sat May 14 20:55:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aman Karmani X-Patchwork-Id: 35771 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a885:b0:7f:4be2:bd17 with SMTP id ca5csp876668pzb; Sat, 14 May 2022 13:56:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpBc+T/BPsESOsf0DAnBnlyNWi0E1VkEgF9wQYmkzTeiIg1cf3Yx65hgOLfrpnF2K8oXlO X-Received: by 2002:a17:906:4f0f:b0:6f4:667c:ff9d with SMTP id t15-20020a1709064f0f00b006f4667cff9dmr9507727eju.519.1652561787141; Sat, 14 May 2022 13:56:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652561787; cv=none; d=google.com; s=arc-20160816; b=KcjlOvmZSV53jpAdaeMLmE7RXiyus/GmkV7siMh2M2YcCZ0NCEc6WoAhIoOSUECqAU GPkRahC4/YiYUbR5GsG2EGamjiUxkvmhlRD2y2nAvCVi2m69ozC/OKnOCB64uj/ndwfY nVjQMyo2LPbrgupBWArs2wwXNGunbFTJYn8a25ap+XjWPNrLmlHhU6pGbL3AWPUQVXfN IK/ZHenYZx30KK5FmtEFONwcIJt7lgsUvs6uFccCm4IbeXj8Vs0XcvXxlHMgbZa/rqKJ rLNtGAK3VtQ1oMdqGvRgpjSLESbmCJLMZw7JNJBTSlYPyCyTRP9NoTjWh7GQiBzbzXZv rj9g== 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:to:mime-version:fcc:date:references :in-reply-to:message-id:from:dkim-signature:delivered-to; bh=+sXsHIu5iwCtmM5dqUlj8iSAMJwIA5aSY8gVwlCOyGU=; b=xA6Vy8xOhNqpVUl6ULh7p38jQZgubC896vxyb3k9zywv+3ZrWehMPaBG9x+wM1kF/H bhyiZoipO2WVbm/gmAI3LdKdSa6xNfG9DW06cuJLMPMjkJMPVjCrijxyX9dvAi9QlGPx JNYOafrA1JLSA5AHE5NjvSdRgnyNGsqSth3UxrYcmuNae+LwC2md5k7h2/1OX0DDmitt fbJdBUXZOAVHs9yhaDVhewOLIDf+7oSWu4P6W1u3ZG3d5i7+hqN4YmjDCB1NmfqJbA9f RNYWeFnSAUKWp6duoNGotYbvUq9xRswNuUDozajsO/jXM2Uy0900+VPF7cEsWPhrZN+8 GoVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b="S0/aERtZ"; 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 gs6-20020a1709072d0600b006f4408bfffbsi6987409ejc.779.2022.05.14.13.56.26; Sat, 14 May 2022 13:56:27 -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=20210112 header.b="S0/aERtZ"; 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 388BA68B4AF; Sat, 14 May 2022 23:55:40 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id ED1FF68B46B for ; Sat, 14 May 2022 23:55:30 +0300 (EEST) Received: by mail-pj1-f53.google.com with SMTP id gj17-20020a17090b109100b001d8b390f77bso13840025pjb.1 for ; Sat, 14 May 2022 13:55:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:in-reply-to:references:date:subject:fcc :content-transfer-encoding:mime-version:to:cc; bh=EWXQ2/QX6jkFRgzpve7Yj9q8QUBRv7hWik0E6ZcSLE8=; b=S0/aERtZhfdwFpk+JMDl/YfpH63T79dNTjTu48fZQ1Cfd+HnfUvcte75KbVRFuSp3E NUy9IS/Iyol8V8ACGmKQhmbHgUt2h9TzpKx+VkGFPOmPDC+f9Jdq8qJ3T3vcpEf0X6PI nNLUomGFeaHcXFcXV1Yw6XuQbDt/HhXSFYrFWo1ZlwNeG43pzJdOeHLaBUxezpu8Vdgy /urFD+VoVKcoFeNydk2vqAYoVZjGQtYeucthNjTvrm+fOt5pxuPGunQ+S9cFTEDwD5Tv txmOra45njXGlEpZLEd1EZAm30P75HGl75C1RKy/Wsq1f4aGZbIpIILrXuHZvsv4mOZO x5cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:in-reply-to:references:date :subject:fcc:content-transfer-encoding:mime-version:to:cc; bh=EWXQ2/QX6jkFRgzpve7Yj9q8QUBRv7hWik0E6ZcSLE8=; b=M7WO2t8lEjAXyq8BjHhFYSYDurMb0xTGXoOahdBKXx4nHsldFZW1zGS6sF3BNjmI8n t4uZob19FCm4GVLqTO+wSat3GLNy1VQD2+dbpL5nIcGl7e7NVE409IdLXKr70Q0kuoSn ej53JHeMyrbA8Ovz6FOUUiUVITJYQ25CXllWWCvFw7+GdT1zaE5OvBPs12EQd+rWWfHJ 3fpVLa6DaxKA0E5Kh4geg9+SMEJd5MwDQsgxVsN5zIt+MGze3kHxQpPllGUFhyr373IO b38dyliaSGyZ0m3Jk93I8N1Vak6pxMf9mMlUQTqWRunKOAvpVTwI89Cys72Yj/f4kCu9 YvnA== X-Gm-Message-State: AOAM530x+J5dMo3TkNKIjJg8cOVJsacg+HiSJAaoJqpnlciB+JfK4SfZ ifnhsQqIzUUt9L96SrIiEruywQ0ieDdYaQ== X-Received: by 2002:a17:90b:1d06:b0:1dc:67f1:1f61 with SMTP id on6-20020a17090b1d0600b001dc67f11f61mr22871256pjb.71.1652561729450; Sat, 14 May 2022 13:55:29 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id b13-20020a170902e94d00b0015e8d4eb208sm4088390pll.82.2022.05.14.13.55.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 May 2022 13:55:28 -0700 (PDT) From: softworkz X-Google-Original-From: softworkz Message-Id: <2d01e4dff5f21e8357f3ce0e9f9878dd5536fec7.1652561722.git.ffmpegagent@gmail.com> In-Reply-To: References: Date: Sat, 14 May 2022 20:55:17 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH v4 05/10] libavformat/asfdec: implement parsing of GUID values 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: Michael Niedermayer , softworkz Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: Wl1ew/3Dk7Gf From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index cb7da2d679..81a29f99d5 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -281,9 +281,12 @@ static void get_tag(AVFormatContext *s, const char *key, int type, uint32_t len, snprintf(value, buffer_len, "%"PRIu64, num); break; } - case ASF_GUID: - av_log(s, AV_LOG_DEBUG, "Unsupported GUID value in tag %s.\n", key); - goto finish; + case ASF_GUID: { + ff_asf_guid g; + ff_get_guid(s->pb, &g); + snprintf(value, buffer_len, "%x", g[0]); + break; + } default: av_log(s, AV_LOG_DEBUG, "Unsupported value type %d in tag %s.\n", type, key);