Index: media/ffmpeg/ffmpeg_common.cc |
diff --git a/media/ffmpeg/ffmpeg_common.cc b/media/ffmpeg/ffmpeg_common.cc |
index 8df6c75df2cc1a3e9d15b00d7b164ecfa29dd295..fca88723833692dd568c336acdfeb19a723a3a5c 100644 |
--- a/media/ffmpeg/ffmpeg_common.cc |
+++ b/media/ffmpeg/ffmpeg_common.cc |
@@ -247,8 +247,11 @@ void AVStreamToVideoDecoderConfig( |
else if (stream->codec->sample_aspect_ratio.num) |
aspect_ratio = stream->codec->sample_aspect_ratio; |
- config->Initialize(CodecIDToVideoCodec(stream->codec->codec_id), |
- ProfileIDToVideoCodecProfile(stream->codec->profile), |
+ VideoCodec codec = CodecIDToVideoCodec(stream->codec->codec_id); |
+ VideoCodecProfile profile = kCodecVP8 ? VP8PROFILE_MAIN : |
+ ProfileIDToVideoCodecProfile(stream->codec->profile); |
scherkus (not reviewing)
2012/07/20 20:20:20
indent
Ami GONE FROM CHROMIUM
2012/07/20 20:25:19
Done.
|
+ config->Initialize(codec, |
+ profile, |
PixelFormatToVideoFormat(stream->codec->pix_fmt), |
coded_size, visible_rect, |
stream->r_frame_rate.num, |