Remove 500ms headroom
This commit is contained in:
parent
9862593f4a
commit
510ed95590
@ -112,8 +112,7 @@ namespace FileLiberator
|
|||||||
audiobookDlLic.TrimOutputToChapterLength = config.StripAudibleBrandAudio;
|
audiobookDlLic.TrimOutputToChapterLength = config.StripAudibleBrandAudio;
|
||||||
|
|
||||||
long startMs = config.StripAudibleBrandAudio ?
|
long startMs = config.StripAudibleBrandAudio ?
|
||||||
contentLic.ContentMetadata.ChapterInfo.BrandIntroDurationMs :
|
contentLic.ContentMetadata.ChapterInfo.BrandIntroDurationMs : 0;
|
||||||
0;
|
|
||||||
|
|
||||||
if (config.AllowLibationFixup || outputFormat == OutputFormat.Mp3)
|
if (config.AllowLibationFixup || outputFormat == OutputFormat.Mp3)
|
||||||
{
|
{
|
||||||
@ -128,7 +127,7 @@ namespace FileLiberator
|
|||||||
chapLenMs -= startMs;
|
chapLenMs -= startMs;
|
||||||
|
|
||||||
if (config.StripAudibleBrandAudio && i == contentLic.ContentMetadata.ChapterInfo.Chapters.Length - 1)
|
if (config.StripAudibleBrandAudio && i == contentLic.ContentMetadata.ChapterInfo.Chapters.Length - 1)
|
||||||
chapLenMs -= contentLic.ContentMetadata.ChapterInfo.BrandOutroDurationMs + 500; //A little more headroom at the end of the file (500 ms)
|
chapLenMs -= contentLic.ContentMetadata.ChapterInfo.BrandOutroDurationMs;
|
||||||
|
|
||||||
audiobookDlLic.ChapterInfo.AddChapter(chapter.Title, TimeSpan.FromMilliseconds(chapLenMs));
|
audiobookDlLic.ChapterInfo.AddChapter(chapter.Title, TimeSpan.FromMilliseconds(chapLenMs));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user