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:
sakal 2017-08-17 03:56:58 -07:00 committed by Commit Bot
parent f9f448b32d
commit 7c206b5b6c

View File

@ -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()};