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

Unified Diff: webrtc/media/base/videoframefactory.cc

Issue 1838353004: cricket::VideoFrame cleanup. New width() and height(). Deleted GetChroma* methods. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix int vs size_t comparison. Created 4 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
Index: webrtc/media/base/videoframefactory.cc
diff --git a/webrtc/media/base/videoframefactory.cc b/webrtc/media/base/videoframefactory.cc
index 0e470675b32fc3c710fb759d43d455be2c9e8243..23925bda56abefb096d71250f0531878478fc532 100644
--- a/webrtc/media/base/videoframefactory.cc
+++ b/webrtc/media/base/videoframefactory.cc
@@ -42,8 +42,8 @@ VideoFrame* VideoFrameFactory::CreateAliasedFrame(
// Create and stretch the output frame if it has not been created yet, is
// still in use by others, or its size is not same as the expected.
if (!output_frame_ || !output_frame_->IsExclusive() ||
- output_frame_->GetWidth() != static_cast<size_t>(output_width) ||
- output_frame_->GetHeight() != static_cast<size_t>(output_height)) {
+ output_frame_->width() != output_width ||
+ output_frame_->height() != output_height) {
output_frame_.reset(
cropped_input_frame->Stretch(output_width, output_height, true, true));
if (!output_frame_) {

Powered by Google App Engine
This is Rietveld 408576698