Index: content/common/gpu/media/vaapi_video_decode_accelerator.cc |
diff --git a/content/common/gpu/media/vaapi_video_decode_accelerator.cc b/content/common/gpu/media/vaapi_video_decode_accelerator.cc |
index fc931b36e6e7302c685d1863defcca41ba5955b1..20977f2a4245a45a6b078168284d7947865bca0d 100644 |
--- a/content/common/gpu/media/vaapi_video_decode_accelerator.cc |
+++ b/content/common/gpu/media/vaapi_video_decode_accelerator.cc |
@@ -397,10 +397,11 @@ void VaapiVideoDecodeAccelerator::OutputPicture( |
DVLOG(4) << "Notifying output picture id " << output_id |
<< " for input "<< input_id << " is ready"; |
// TODO(posciak): Use visible size from decoder here instead |
- // (crbug.com/402760). |
+ // (crbug.com/402760). Passing (0, 0) results in the client using the |
+ // visible size extracted from the container instead. |
if (client_) |
client_->PictureReady(media::Picture(output_id, input_id, |
- gfx::Rect(picture->size()), |
+ gfx::Rect(0, 0), |
picture->AllowOverlay())); |
} |