Index: media/filters/ffmpeg_video_decoder.cc |
diff --git a/media/filters/ffmpeg_video_decoder.cc b/media/filters/ffmpeg_video_decoder.cc |
index 3afcbeb0e9573b1f5adba1518d560d602a3131f9..9e8255a7e77f54b0e62b534aaa7d3fe9e4b77507 100644 |
--- a/media/filters/ffmpeg_video_decoder.cc |
+++ b/media/filters/ffmpeg_video_decoder.cc |
@@ -91,11 +91,12 @@ int FFmpegVideoDecoder::GetVideoBuffer(AVCodecContext* codec_context, |
natural_size = demuxer_stream_->video_decoder_config().natural_size(); |
} |
- if (!VideoFrame::IsValidConfig(format, size, natural_size)) |
+ if (!VideoFrame::IsValidConfig(format, size, gfx::Rect(size), natural_size)) |
return AVERROR(EINVAL); |
scoped_refptr<VideoFrame> video_frame = |
- VideoFrame::CreateFrame(format, size, natural_size, kNoTimestamp()); |
+ VideoFrame::CreateFrame(format, size, gfx::Rect(size), natural_size, |
+ kNoTimestamp()); |
for (int i = 0; i < 3; i++) { |
frame->base[i] = video_frame->data(i); |