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

Unified Diff: media/filters/gpu_video_decoder.cc

Issue 10408003: Plumb extra_data() to VideoDecodeAccelerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rev interface versino Created 8 years, 7 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
« no previous file with comments | « media/filters/gpu_video_decoder.h ('k') | media/video/video_decode_accelerator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/gpu_video_decoder.cc
diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc
index 17b46fab8e7a9786f7b9941e746b5934a5a998cd..44005f3fdb07ba26b12f7bfe00f58de0e8d05877 100644
--- a/media/filters/gpu_video_decoder.cc
+++ b/media/filters/gpu_video_decoder.cc
@@ -151,7 +151,13 @@ void GpuVideoDecoder::Initialize(const scoped_refptr<DemuxerStream>& stream,
return;
}
- vda_ = factories_->CreateVideoDecodeAccelerator(config.profile(), this);
+ std::vector<uint8_t> extra_data;
+ if (config.extra_data()) {
+ extra_data.assign(config.extra_data(),
+ config.extra_data() + config.extra_data_size());
+ }
+ vda_ = factories_->CreateVideoDecodeAccelerator(
+ config.profile(), config.coded_size(), extra_data, this);
if (!vda_) {
status_cb.Run(DECODER_ERROR_NOT_SUPPORTED);
return;
« no previous file with comments | « media/filters/gpu_video_decoder.h ('k') | media/video/video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698