Przeglądaj źródła

Merge pull request #4205 from cvium/fix_aspectratio_calc

Fix aspect ratio calculation sometimes returning 0 or 1
Bond-009 4 lat temu
rodzic
commit
c67ffa417a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Emby.Server.Implementations/Dto/DtoService.cs

+ 1 - 1
Emby.Server.Implementations/Dto/DtoService.cs

@@ -1431,7 +1431,7 @@ namespace Emby.Server.Implementations.Dto
                 return null;
                 return null;
             }
             }
 
 
-            return width / height;
+            return (double)width / height;
         }
         }
     }
     }
 }
 }