Browse Source

Fix potential problem where aspect ratio would be incorrectly calculated

hawken 6 năm trước cách đây
mục cha
commit
bddfca6215
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      MediaBrowser.Controller/Entities/Photo.cs

+ 1 - 2
MediaBrowser.Controller/Entities/Photo.cs

@@ -79,8 +79,7 @@ namespace MediaBrowser.Controller.Entities
                     }
                 }
 
-                width /= Height.Value;
-                return width;
+                return width / height;
             }
 
             return base.GetDefaultPrimaryImageAspectRatio();