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

Unified Diff: content/renderer/media/media_stream_video_source.cc

Issue 189513004: Make sure natural_size is set when a frame is cropped. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed DCHECK of natural size since the decoder pipeline do not abey. Created 6 years, 9 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
« no previous file with comments | « no previous file | media/base/video_frame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_video_source.cc
diff --git a/content/renderer/media/media_stream_video_source.cc b/content/renderer/media/media_stream_video_source.cc
index a544d5cb5e371d81c7cf5fbf4b2bfca89ddc66df..fa98014f8ebb6ac3783f13a9a9834eb308d94866 100644
--- a/content/renderer/media/media_stream_video_source.cc
+++ b/content/renderer/media/media_stream_video_source.cc
@@ -387,7 +387,7 @@ void MediaStreamVideoSource::DeliverVideoFrame(
gfx::Rect rect(horiz_crop, vert_crop, visible_width, visible_height);
video_frame = media::VideoFrame::WrapVideoFrame(
- frame, rect, base::Bind(&ReleaseOriginalFrame, frame));
+ frame, rect, rect.size(), base::Bind(&ReleaseOriginalFrame, frame));
}
if ((frame->format() == media::VideoFrame::I420 ||
« no previous file with comments | « no previous file | media/base/video_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698