aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcvium <clausvium@gmail.com>2020-09-24 23:09:26 +0200
committercvium <clausvium@gmail.com>2020-09-24 23:09:26 +0200
commitec5b7380792b6274ae2ce9e0281a3eac7beccdbd (patch)
tree2829236b6069e9fb1910f240b32876b374569e22
parent226316a4863af5cac17e906cde214dabde5a6692 (diff)
Fix aspect ratio calculation returning 0 or 1 when item has no default AR
-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;
}
}
}