cricket::VideoFrameFactory: Handle if created frame is null

R=perkj@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/46869004

Cr-Commit-Position: refs/heads/master@{#8972}
This commit is contained in:
Magnus Jedvert 2015-04-10 12:44:52 +02:00
parent 9526187dde
commit f6c003eda5

View File

@ -40,6 +40,8 @@ VideoFrame* VideoFrameFactory::CreateAliasedFrame(
int output_height) const {
rtc::scoped_ptr<VideoFrame> cropped_input_frame(CreateAliasedFrame(
input_frame, cropped_input_width, cropped_input_height));
if (!cropped_input_frame)
return nullptr;
if (cropped_input_width == output_width &&
cropped_input_height == output_height) {