Fix a crash in I420Frame.toString for texture frames.

BUG=webrtc:8073
R=kthelgason

Review-Url: https://codereview.webrtc.org/2997693002
Cr-Commit-Position: refs/heads/master@{#19302}
This commit is contained in:
sakal
2017-08-10 02:12:24 -07:00
committed by Commit Bot
parent 99daf6b697
commit 71a62b9a19

View File

@ -130,7 +130,10 @@ public class VideoRenderer {
@Override @Override
public String toString() { public String toString() {
return width + "x" + height + ":" + yuvStrides[0] + ":" + yuvStrides[1] + ":" + yuvStrides[2]; final String type = yuvFrame
? "Y: " + yuvStrides[0] + ", U: " + yuvStrides[1] + ", V: " + yuvStrides[2]
: "Texture: " + textureId;
return width + "x" + height + ", " + type;
} }
} }