Index: media/filters/ffmpeg_video_decoder.cc |
diff --git a/media/filters/ffmpeg_video_decoder.cc b/media/filters/ffmpeg_video_decoder.cc |
index 54f1808bb41a7a740c6f39de3131c49e6f524d0d..5d03c808c6eb786a98eb4273c9f490f3f1e558eb 100644 |
--- a/media/filters/ffmpeg_video_decoder.cc |
+++ b/media/filters/ffmpeg_video_decoder.cc |
@@ -120,9 +120,10 @@ int FFmpegVideoDecoder::GetVideoBuffer(struct AVCodecContext* codec_context, |
RoundUp(std::max(size.width(), codec_context->coded_width), 2), |
RoundUp(std::max(size.height(), codec_context->coded_height), 2)); |
- if (!VideoFrame::IsValidConfig( |
- format, coded_size, gfx::Rect(size), natural_size)) |
+ if (!VideoFrame::IsValidConfig(format, VideoFrame::STORAGE_UNKNOWN, |
+ coded_size, gfx::Rect(size), natural_size)) { |
return AVERROR(EINVAL); |
+ } |
scoped_refptr<VideoFrame> video_frame = frame_pool_.CreateFrame( |
format, coded_size, gfx::Rect(size), natural_size, kNoTimestamp()); |