Преглед на файлове

Merge pull request #6976 from Bond-009/float

Claus Vium преди 3 години
родител
ревизия
2c6d6dbbf8
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs

+ 3 - 3
MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs

@@ -45,7 +45,7 @@ namespace MediaBrowser.MediaEncoding.Probing
         {
         {
             "AC/DC",
             "AC/DC",
             "Au/Ra",
             "Au/Ra",
-            "Bremer/McCoy", 
+            "Bremer/McCoy",
             "이달의 소녀 1/3",
             "이달의 소녀 1/3",
             "LOONA 1/3",
             "LOONA 1/3",
             "LOONA / yyxy",
             "LOONA / yyxy",
@@ -723,8 +723,8 @@ namespace MediaBrowser.MediaEncoding.Probing
                 // Some interlaced H.264 files in mp4 containers using MBAFF coding aren't flagged as being interlaced by FFprobe,
                 // Some interlaced H.264 files in mp4 containers using MBAFF coding aren't flagged as being interlaced by FFprobe,
                 // so for H.264 files we also calculate the frame rate from the codec time base and check if it is double the reported
                 // so for H.264 files we also calculate the frame rate from the codec time base and check if it is double the reported
                 // frame rate (both rounded to the nearest integer) to determine if the file is interlaced
                 // frame rate (both rounded to the nearest integer) to determine if the file is interlaced
-                float roundedTimeBaseFPS = MathF.Round(1 / GetFrameRate(stream.CodecTimeBase) ?? 0);
-                float roundedDoubleFrameRate = MathF.Round(stream.AverageFrameRate * 2 ?? 0);
+                int roundedTimeBaseFPS = Convert.ToInt32(1 / GetFrameRate(stream.CodecTimeBase) ?? 0);
+                int roundedDoubleFrameRate = Convert.ToInt32(stream.AverageFrameRate * 2 ?? 0);
 
 
                 bool videoInterlaced = !string.IsNullOrWhiteSpace(streamInfo.FieldOrder)
                 bool videoInterlaced = !string.IsNullOrWhiteSpace(streamInfo.FieldOrder)
                     && !string.Equals(streamInfo.FieldOrder, "progressive", StringComparison.OrdinalIgnoreCase);
                     && !string.Equals(streamInfo.FieldOrder, "progressive", StringComparison.OrdinalIgnoreCase);