Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(423)

Unified Diff: media/ffmpeg/ffmpeg_common.cc

Issue 10808058: Add support for VP8 decode to OmxVideoDecodeAccelerator, for HW that supports it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: scherkus comments. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/ffmpeg/ffmpeg_common.cc
diff --git a/media/ffmpeg/ffmpeg_common.cc b/media/ffmpeg/ffmpeg_common.cc
index 8df6c75df2cc1a3e9d15b00d7b164ecfa29dd295..919f124e8de7ce1bcaea83e32505cb75a6e2bcda 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);
+ config->Initialize(codec,
+ profile,
PixelFormatToVideoFormat(stream->codec->pix_fmt),
coded_size, visible_rect,
stream->r_frame_rate.num,

Powered by Google App Engine
This is Rietveld 408576698