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

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: 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..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,

Powered by Google App Engine
This is Rietveld 408576698