Commit de90333e authored by scherkus@chromium.org's avatar scherkus@chromium.org

Check VideoFrame::IsValidConfig() prior to allocating buffers for FFmpeg.

BUG=140085


Review URL: https://chromiumcodereview.appspot.com/10827149

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150215 0039d316-1c4b-4281-b951-d872f2087c98
parent 4d0a03e0
......@@ -89,6 +89,9 @@ int FFmpegVideoDecoder::GetVideoBuffer(AVCodecContext* codec_context,
natural_size = demuxer_stream_->video_decoder_config().natural_size();
}
if (!VideoFrame::IsValidConfig(format, size, natural_size))
return AVERROR(EINVAL);
scoped_refptr<VideoFrame> video_frame =
VideoFrame::CreateFrame(format, size, natural_size, kNoTimestamp());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment