From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 22D57441F2 for ; Sun, 2 Oct 2022 16:28:17 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 50A4168BBAF; Sun, 2 Oct 2022 19:28:12 +0300 (EEST) 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-Google-Smtp-Source: AMsMyM6Ja5E39e8XwoeSJLrjsxQrZOIGwo9u4CkiRMlvBCobFicN2/MP1rr6G8yDfB43wVe6wToFEg== 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: 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 -- 2.25.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".