Fix a reference leak when converting I420 VideoFrame to I420Frame.
BUG=webrtc:7760 NOTRY=True Review-Url: https://codereview.webrtc.org/2999143002 Cr-Commit-Position: refs/heads/master@{#19380}
This commit is contained in:
parent
f9f448b32d
commit
7c206b5b6c
@ -104,6 +104,7 @@ public class VideoRenderer {
|
||||
this.yuvPlanes = null;
|
||||
} else {
|
||||
VideoFrame.I420Buffer i420Buffer = buffer.toI420();
|
||||
buffer.release();
|
||||
this.yuvFrame = true;
|
||||
this.yuvStrides =
|
||||
new int[] {i420Buffer.getStrideY(), i420Buffer.getStrideU(), i420Buffer.getStrideV()};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user