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

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: address dcheng's comments Created 4 years, 11 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: 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 5424a5ff32d801d846662f7fb95b910caf19e7ef..65a3f54228bedc4674e65b091396794ceaeeaa1e 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.cc
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc
@@ -509,9 +509,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,
+ checked_cast<off_t>(params.offset), params.presentation_timestamp);
dcheng 2016/01/25 19:09:18 Should this really crash the GPU (I think?) proces
Owen Lin 2016/01/29 05:38:17 Change to returning error. Besides, I also tried
if (!params.key_id.empty()) {
bitstream_buffer.SetDecryptConfig(
media::DecryptConfig(params.key_id, params.iv, params.subsamples));
« no previous file with comments | « content/common/gpu/media/android_video_encode_accelerator.cc ('k') | content/common/gpu/media/shared_memory_region.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698