Index: talk/app/webrtc/java/android/org/webrtc/RendererCommon.java |
diff --git a/talk/app/webrtc/java/android/org/webrtc/RendererCommon.java b/talk/app/webrtc/java/android/org/webrtc/RendererCommon.java |
index 94d180da5a0b80d392239505f9ab63485c76df3f..22bb3273801b07ec08389fb5d9b3a36ec231681e 100644 |
--- a/talk/app/webrtc/java/android/org/webrtc/RendererCommon.java |
+++ b/talk/app/webrtc/java/android/org/webrtc/RendererCommon.java |
@@ -182,9 +182,9 @@ public class RendererCommon { |
} |
// Each dimension is constrained on max display size and how much we are allowed to crop. |
final int width = Math.min(maxDisplayWidth, |
- (int) (maxDisplayHeight / minVisibleFraction * videoAspectRatio)); |
+ Math.round(maxDisplayHeight / minVisibleFraction * videoAspectRatio)); |
final int height = Math.min(maxDisplayHeight, |
- (int) (maxDisplayWidth / minVisibleFraction / videoAspectRatio)); |
+ Math.round(maxDisplayWidth / minVisibleFraction / videoAspectRatio)); |
return new Point(width, height); |
} |
} |