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:
parent
9526187dde
commit
f6c003eda5
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user