From df03c5808153ec2b1c2c3f27aaf508702b6facf8 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Mon, 27 Oct 2025 20:45:17 +0100 Subject: [PATCH] Delegate to WithChapter with long argument overload --- FFMpegCore/FFMetadataInputArgument.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FFMpegCore/FFMetadataInputArgument.cs b/FFMpegCore/FFMetadataInputArgument.cs index f2fce59..e0f00a7 100644 --- a/FFMpegCore/FFMetadataInputArgument.cs +++ b/FFMpegCore/FFMetadataInputArgument.cs @@ -26,8 +26,7 @@ public class FFMetadataBuilder public FFMetadataBuilder WithChapter(string title, double durationSeconds) { - Chapters.Add(new FFMetadataChapter(title, Convert.ToInt64(durationSeconds * 1000))); - return this; + return WithChapter(title, Convert.ToInt64(durationSeconds * 1000)); } public string GetMetadataFileContent()