Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: content/renderer/media/webrtc/video_destination_handler.cc

Issue 1267003004: Revert to zero-initializing buffers for FFmpegVideoDecoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/webrtc/video_destination_handler.cc
diff --git a/content/renderer/media/webrtc/video_destination_handler.cc b/content/renderer/media/webrtc/video_destination_handler.cc
index 5aaa4272cc43eb77d182eb5b1ec38621705b2bf5..b131c930d481db72cd9a18f5f3dcee3e25a45431 100644
--- a/content/renderer/media/webrtc/video_destination_handler.cc
+++ b/content/renderer/media/webrtc/video_destination_handler.cc
@@ -144,10 +144,9 @@ void PpFrameWriter::PutFrame(PPB_ImageData_Impl* image_data,
const base::TimeDelta timestamp = base::TimeDelta::FromMicroseconds(
time_stamp_ns / base::Time::kNanosecondsPerMicrosecond);
- scoped_refptr<media::VideoFrame> new_frame =
- frame_pool_.CreateFrame(media::PIXEL_FORMAT_YV12, frame_size,
- gfx::Rect(frame_size), frame_size, timestamp);
-
+ scoped_refptr<media::VideoFrame> new_frame = frame_pool_.CreateFrame(
+ media::PIXEL_FORMAT_YV12, frame_size, gfx::Rect(frame_size), frame_size,
+ timestamp, false);
libyuv::ARGBToI420(src_data,
src_stride,
new_frame->data(media::VideoFrame::kYPlane),
« no previous file with comments | « no previous file | content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc » ('j') | media/base/video_frame.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698