Fix ErrorProne MultiVariableDeclaration.

This check has been turned on in [1] and it is now preventing the
Chromium Roll into WebRTC.

[1] - https://chromium-review.googlesource.com/c/chromium/src/+/1939956

TBR: sakal@webrtc.org
Bug: None
Change-Id: I43372eb3b3987bdf91bc717a6f50be3d8b1db56c
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/161006
Reviewed-by: Artem Titov <titovartem@webrtc.org>
Reviewed-by: Yves Gerey <yvesg@google.com>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29954}
This commit is contained in:
Mirko Bonadei
2019-11-28 15:12:24 +01:00
committed by Commit Bot
parent 0682ca9a83
commit fe7ce1c3bc

View File

@ -463,7 +463,10 @@ class AndroidVideoDecoder implements VideoDecoder, VideoSink {
private void deliverByteFrame(
int result, MediaCodec.BufferInfo info, int rotation, Integer decodeTimeMs) {
// Load dimensions from shared memory under the dimension lock.
int width, height, stride, sliceHeight;
int width;
int height;
int stride;
int sliceHeight;
synchronized (dimensionLock) {
width = this.width;
height = this.height;