aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-09-25 08:19:09 +0200
committerGitHub <noreply@github.com>2020-09-25 08:19:09 +0200
commitc67ffa417a5b47c7cf415ff4bbcbe045c9d4980f (patch)
tree3f2a2a1337bfa1bd1d1ab52013144f2a768c7aee
parent18ab0c21b2d2f4ff763d8628a79d4d25b5b87609 (diff)
parentec5b7380792b6274ae2ce9e0281a3eac7beccdbd (diff)
Merge pull request #4205 from cvium/fix_aspectratio_calc
Fix aspect ratio calculation sometimes returning 0 or 1
-rw-r--r--Emby.Server.Implementations/Dto/DtoService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs
index 57c1398e9..94cfed767 100644
--- a/Emby.Server.Implementations/Dto/DtoService.cs
+++ b/Emby.Server.Implementations/Dto/DtoService.cs
@@ -1431,7 +1431,7 @@ namespace Emby.Server.Implementations.Dto
return null;
}
- return width / height;
+ return (double)width / height;
}
}
}