mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
change variable to camelCase
This commit is contained in:
parent
bd7898f18a
commit
2251e7d603
@ -64,11 +64,11 @@ public static class FfProbeKeyframeExtractor
|
||||
{
|
||||
// Split time and flags from the packet line. Example line: packet,7169.079000,K_
|
||||
var secondComma = rest.IndexOf(',');
|
||||
var pts_time = rest[..secondComma];
|
||||
var ptsTime = rest[..secondComma];
|
||||
var flags = rest[(secondComma + 1)..];
|
||||
if (flags.StartsWith("K_"))
|
||||
{
|
||||
if (double.TryParse(pts_time, NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out var keyframe))
|
||||
if (double.TryParse(ptsTime, NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out var keyframe))
|
||||
{
|
||||
// Have to manually convert to ticks to avoid rounding errors as TimeSpan is only precise down to 1 ms when converting double.
|
||||
keyframes.Add(Convert.ToInt64(keyframe * TimeSpan.TicksPerSecond));
|
||||
|
Loading…
Reference in New Issue
Block a user