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 65CAF436CE for ; Tue, 23 Aug 2022 05:11:25 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 97B3568B9DC; Tue, 23 Aug 2022 08:11:16 +0300 (EEST) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 036EF68B9A1 for ; Tue, 23 Aug 2022 08:11:11 +0300 (EEST) Received: by mail-pf1-f172.google.com with SMTP id y127so9444961pfy.5 for ; Mon, 22 Aug 2022 22:11:10 -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; bh=bYnP/pAj0tnYRpiMRmEEZq/yqwdMsWBebFa5KutoJwY=; b=oApoY7d6aNxocGhJGik9uc0kqxMkLfLAwqu9jOlCdX5zPD4q0bu6YmwDYARDW6zcaI JtWTxi8mHWnqQcPCHNFCq6P1MlSPO2Zi3aRGFQpM/9+a1cGH6+P/PdmhwIm/hE6+16eD fKtaye8CKkmM2cDkGNGnyWzPYyOmwQ92nSeVl4OYPGbz0Mn6pFjVXoPrLjwnItEbiTE3 AdWCz+mt2WLClqF5mgMCXTIXbzJoEbp/EQQFAr0ENv6bQ/5ytpquujQw2DM7OTO3Y4qi ynq8Ve1RuQ3qHZo266xCNrvmvtXBwfZGMPcBO+2O35XBFnnU6+bwdnfJMNc8Vu/9LHAL Ig2g== X-Gm-Message-State: ACgBeo1AzGavDpx/qK7XZUcGh8bT1NTT8+imigHapwCeVrXwE3phYl9y pskrvQUExDpN6Zw9kpPdhU9JCcSbyRI= X-Google-Smtp-Source: AA6agR4gc/SzIAj+kWDhcEVUlMA96mACOzXakaNrtQMSFGXRdvSHGthr9p7m9mBOTzfFFhovZteb7Q== X-Received: by 2002:a05:6a00:32ca:b0:535:e7e4:dfb3 with SMTP id cl10-20020a056a0032ca00b00535e7e4dfb3mr22385252pfb.6.1661231468581; Mon, 22 Aug 2022 22:11: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 l4-20020a622504000000b0052859441ad3sm9456148pfl.214.2022.08.22.22.11.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Aug 2022 22:11:08 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Mon, 22 Aug 2022 22:10:56 -0700 From: pal@sandflow.com To: ffmpeg-devel@ffmpeg.org Date: Mon, 22 Aug 2022 22:10:50 -0700 Message-Id: <20220823051050.3515-2-pal@sandflow.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220823051050.3515-1-pal@sandflow.com> References: <20220823051050.3515-1-pal@sandflow.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v1 2/2] 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 e65629ccbc..d42295dc29 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".