Fix NarrowingCompoundAssignment warning
This ErrorProne warning was enabled in http://crrev.com/96c7ab0153ae97a8d8e05949f36cd7bb8eedbf1d https://webrtc-review.googlesource.com/60849 Bug: None Change-Id: I5e622f84925ee96e7743d2c08d17fcdb4c4a0f55 Reviewed-on: https://webrtc-review.googlesource.com/60940 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Commit-Queue: Oleh Prypin <oprypin@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22362}
This commit is contained in:
@ -101,9 +101,9 @@ public class VideoFileRenderer implements VideoRenderer.Callbacks, VideoSink {
|
||||
int cropWidth = buffer.getWidth();
|
||||
int cropHeight = buffer.getHeight();
|
||||
if (fileAspectRatio > frameAspectRatio) {
|
||||
cropHeight *= frameAspectRatio / fileAspectRatio;
|
||||
cropHeight = (int) (cropHeight * (frameAspectRatio / fileAspectRatio));
|
||||
} else {
|
||||
cropWidth *= fileAspectRatio / frameAspectRatio;
|
||||
cropWidth = (int) (cropWidth * (fileAspectRatio / frameAspectRatio));
|
||||
}
|
||||
|
||||
final int cropX = (buffer.getWidth() - cropWidth) / 2;
|
||||
|
Reference in New Issue
Block a user