Index: media/filters/gpu_video_decoder.cc |
diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc |
index 34204cedacab04ae889c3a31bd350ca5a438f3a3..a460e28974f6d18ea8493a4321f9e56b1a40eedd 100644 |
--- a/media/filters/gpu_video_decoder.cc |
+++ b/media/filters/gpu_video_decoder.cc |
@@ -251,6 +251,7 @@ void GpuVideoDecoder::CompleteInitialization(int cdm_id, int surface_id) { |
VideoDecodeAccelerator::Config vda_config(config_); |
vda_config.surface_id = surface_id; |
vda_config.is_deferred_initialization_allowed = true; |
+ vda_config.initial_expected_coded_size = config_.coded_size(); |
if (!vda_->Initialize(vda_config, this)) { |
DVLOG(1) << "VDA::Initialize failed."; |
base::ResetAndReturn(&init_cb_).Run(false); |