From patchwork Sun Oct 2 16:27:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Anthony Lemieux X-Patchwork-Id: 38521 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp866423pzh; Sun, 2 Oct 2022 09:28:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5wlV8t0DMfDnhQexD93vONVO686+5kCF2T1P2ADDp0HiorzYcngwcT9euW8AmDyk3B7OhP X-Received: by 2002:aa7:d04e:0:b0:456:fa02:4d52 with SMTP id n14-20020aa7d04e000000b00456fa024d52mr15678637edo.10.1664728098881; Sun, 02 Oct 2022 09:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664728098; cv=none; d=google.com; s=arc-20160816; b=BFdsFG8cdf3rK7JoPQFcJj0ZTvG3I4BHjtBMaQbOIBOhcLUMAZMta014S9EP82TZGo 5Ear+vkMBsN57Gt33lfTJ8R5wNCxbFGnH2TIz7ABMv4w/ubSyX/RxjFnWWsMJfVZFgCo XrtzPT6qNGWLyNDVzhVLbv0B0tKF/aBLV44/TqAo4cIstiAlsLWZGP7fcjecbHEcH01t 4J9ClkBX+j+qtCXruIcwW0gbeO4k5gLUydFfKsYtBshSZ6E9QdBYBUbF6nJdFR2Z0/Pp R5YqHbJ1Ll54pv4Rrw7Rn8/KD6jlfkd2pPbyr4P3RM81iz/Q4M6FDq8TrGqreaX5RUzh hDQg== 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=WINxfaR9OycpeTh7J2KctgKKHuE8irl0hvlkTCKona4=; b=lZi4VGqFX2w29PObsLS9yuM0GsRT1J7jH5VvXpvjXtZPtvhvKNATnzpzCNd/+OZQx6 +TJu22f6w8bQG+dK2Eu1uNCPnmw5Uu6ZzJLucriW6g/K+feWRzqQ7MAg2jb12ptQ5kcJ L3ksMQ5PUjc3eMFb9403F8OMiUMFi0g+C9N9Gl4D5FAA08TnI6OrAJrUuT+W/ETsJAzJ hhWR8kq/VkuRPIy/ujTn3cfCb36y0cbmkCMJ2ZingGzH2JbzZo/o6CM9tV8tYdAEbbTX 6S53bLCOGML9a/1pqhibJomzX2itMlX0FeRqda7RMGUKs/fCMeDxb6T0a6QvWhV7aHif a/lA== 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 h17-20020a05640250d100b004585c0fe21csi7125155edb.536.2022.10.02.09.28.18; Sun, 02 Oct 2022 09:28: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 7F7B568BBB0; Sun, 2 Oct 2022 19:28:12 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 94C9968BB8D for ; Sun, 2 Oct 2022 19:28:11 +0300 (EEST) Received: by mail-pg1-f174.google.com with SMTP id r62so7906086pgr.12 for ; Sun, 02 Oct 2022 09:28:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=QYiLM3oXoA8TS/p93z6SSYisj6JX3UURg4vfFGHKFYA=; b=hEEB2vdPyykVR3IvawVFSAl23Lp1O/oEp3nY8T/dmHMzNyKnn/tBVgVKUxnXlOtZ4W JeXrnv6wPjaNzwMrEUduLcWVbMz7+SOTTt3cSRz025jkAaxVZvNcqUQRBLOpIxOewB8Q iXrulcoB5iaTVpP2v0eS5cRtr/du8FV6wtKcdQJbCFKQs7dNswnkJ6DmKQe4mAw4O6uE 2bChv/IFyPmMkkH4SnhHhbkQw9PVjz4G+E4TEqqQXsTKuMeRNuQnFNeJV7oXZOUpOYWZ okaLLJHN7rjYBid95XcjdRd+S1ko12cgU4W3EJwbLWRbsZilDn+X131dgJnlxAILgvlI jH5w== X-Gm-Message-State: ACrzQf1S0TtUiRmwho3rYoJz96UMc9Wygj1byHpgSv+9uQU+eb1Mlsle Q8NCfbscLUf4YDOIqlYkUkeZRPiep94= X-Received: by 2002:a05:6a00:180d:b0:540:ec09:293 with SMTP id y13-20020a056a00180d00b00540ec090293mr18981875pfa.3.1664728088935; Sun, 02 Oct 2022 09:28:08 -0700 (PDT) Received: from localhost (76-14-89-2.sf-cable.astound.net. [76.14.89.2]) by smtp.gmail.com with ESMTPSA id d79-20020a621d52000000b0056012d934fasm2743894pfd.156.2022.10.02.09.28.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Oct 2022 09:28:08 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Sun, 02 Oct 2022 09:28:06 -0700 From: pal@sandflow.com To: ffmpeg-devel@ffmpeg.org Date: Sun, 2 Oct 2022 09:27:54 -0700 Message-Id: <20221002162755.8413-2-pal@sandflow.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221002162755.8413-1-pal@sandflow.com> References: <20221002162755.8413-1-pal@sandflow.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 2/3] avformat/tests/imf: add CPL timecode test 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: Pierre-Anthony Lemieux Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: WY+T37EALc8J From: Pierre-Anthony Lemieux --- libavformat/tests/imf.c | 7 +++++++ tests/ref/fate/imf | 1 + 2 files changed, 8 insertions(+) diff --git a/libavformat/tests/imf.c b/libavformat/tests/imf.c index a71de692f9..2cacb43f47 100644 --- a/libavformat/tests/imf.c +++ b/libavformat/tests/imf.c @@ -70,6 +70,11 @@ const char *cpl_doc = " urn:uuid:8e097bb0-cff7-4969-a692-bad47bfb528f" " " "" + "" + "false" + "24" + "02:10:01.23" + "" "24000 1001" "" "" @@ -288,6 +293,7 @@ static int test_cpl_parsing(void) { xmlDocPtr doc; FFIMFCPL *cpl; + char tc_buf[AV_TIMECODE_STR_SIZE]; int ret; doc = xmlReadMemory(cpl_doc, strlen(cpl_doc), NULL, NULL, 0); @@ -306,6 +312,7 @@ static int test_cpl_parsing(void) printf("%s\n", cpl->content_title_utf8); printf(AV_PRI_URN_UUID "\n", AV_UUID_ARG(cpl->id_uuid)); printf("%i %i\n", cpl->edit_rate.num, cpl->edit_rate.den); + printf("%s\n", av_timecode_make_string(cpl->tc, tc_buf, 0)); printf("Marker resource count: %" PRIu32 "\n", cpl->main_markers_track->resource_count); for (uint32_t i = 0; i < cpl->main_markers_track->resource_count; i++) { diff --git a/tests/ref/fate/imf b/tests/ref/fate/imf index 90b461dc5d..5093167bc7 100644 --- a/tests/ref/fate/imf +++ b/tests/ref/fate/imf @@ -1,6 +1,7 @@ FFMPEG sample content urn:uuid:8713c020-2489-45f5-a9f7-87be539e20b5 24000 1001 +02:10:01:23 Marker resource count: 2 Marker resource 0 Marker 0