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

Unified Diff: content/common/gpu/media/gpu_video_decode_accelerator.cc

Issue 1541353002: Add offset support to BitstreamBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handle the offset with a helper class Created 5 years 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: content/common/gpu/media/gpu_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.cc b/content/common/gpu/media/gpu_video_decode_accelerator.cc
index 2dfe85bece7825994ca001d7c4ee1c7200204134..f77b4ea9cc293a944a0eef8f4a7c3baa4d67bf07 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.cc
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc
@@ -511,9 +511,9 @@ void GpuVideoDecodeAccelerator::OnDecode(
return;
}
- media::BitstreamBuffer bitstream_buffer(params.bitstream_buffer_id,
- params.buffer_handle, params.size,
- params.presentation_timestamp);
+ media::BitstreamBuffer bitstream_buffer(
+ params.bitstream_buffer_id, params.buffer_handle, params.size,
+ params.offset, params.presentation_timestamp);
if (!params.key_id.empty()) {
bitstream_buffer.SetDecryptConfig(
media::DecryptConfig(params.key_id, params.iv, params.subsamples));

Powered by Google App Engine
This is Rietveld 408576698