Index: webrtc/media/base/videoadapter.cc |
diff --git a/webrtc/media/base/videoadapter.cc b/webrtc/media/base/videoadapter.cc |
index 9c3837c5729bc4b48531689c36ed2e0a9206afc7..dec42a24cd00816a98efe3468c22bd6b9e65d7b7 100644 |
--- a/webrtc/media/base/videoadapter.cc |
+++ b/webrtc/media/base/videoadapter.cc |
@@ -132,7 +132,7 @@ void VideoAdapter::SetExpectedInputFrameInterval(int64_t interval) { |
input_interval_ = interval; |
} |
-void VideoAdapter::AdaptFrameResolution(int in_width, |
+bool VideoAdapter::AdaptFrameResolution(int in_width, |
int in_height, |
int* cropped_width, |
int* cropped_height, |
@@ -185,11 +185,7 @@ void VideoAdapter::AdaptFrameResolution(int in_width, |
} |
// Drop frame. |
- *cropped_width = 0; |
- *cropped_height = 0; |
- *out_width = 0; |
- *out_height = 0; |
- return; |
+ return false; |
} |
// Calculate how the input should be cropped. |
@@ -246,6 +242,8 @@ void VideoAdapter::AdaptFrameResolution(int in_width, |
previous_width_ = *out_width; |
previous_height_ = *out_height; |
+ |
+ return true; |
} |
void VideoAdapter::OnOutputFormatRequest(const VideoFormat& format) { |