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:
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user