| Index: media/ffmpeg/ffmpeg_common.cc
|
| diff --git a/media/ffmpeg/ffmpeg_common.cc b/media/ffmpeg/ffmpeg_common.cc
|
| index 1a4e41808006e792eb3ecd3a636f5eaaea0ad7a0..740459f707b70adf90b3bccdd7cc8eef805470bd 100644
|
| --- a/media/ffmpeg/ffmpeg_common.cc
|
| +++ b/media/ffmpeg/ffmpeg_common.cc
|
| @@ -5,6 +5,7 @@
|
| #include "media/ffmpeg/ffmpeg_common.h"
|
|
|
| #include "base/logging.h"
|
| +#include "media/base/video_util.h"
|
|
|
| namespace media {
|
|
|
| @@ -250,12 +251,12 @@ void AVStreamToVideoDecoderConfig(
|
| VideoCodec codec = CodecIDToVideoCodec(stream->codec->codec_id);
|
| VideoCodecProfile profile = (codec == kCodecVP8) ? VP8PROFILE_MAIN :
|
| ProfileIDToVideoCodecProfile(stream->codec->profile);
|
| + gfx::Size natural_size = GetNaturalSize(
|
| + visible_rect.size(), aspect_ratio.num, aspect_ratio.den);
|
| config->Initialize(codec,
|
| profile,
|
| PixelFormatToVideoFormat(stream->codec->pix_fmt),
|
| - coded_size, visible_rect,
|
| - aspect_ratio.num,
|
| - aspect_ratio.den,
|
| + coded_size, visible_rect, natural_size,
|
| stream->codec->extradata,
|
| stream->codec->extradata_size,
|
| true);
|
|
|