瀏覽代碼

Merge pull request #4205 from cvium/fix_aspectratio_calc

Fix aspect ratio calculation sometimes returning 0 or 1
Bond-009 4 年之前
父節點
當前提交
c67ffa417a
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 width / height;
+            return (double)width / height;
         }
     }
 }