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

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: fix compiling errors on android 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..7ea77db3551a33bba3d4f8495b23a90a912170fa 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,
+ params.offset, params.presentation_timestamp);
dcheng 2016/01/22 18:27:39 Where do we validate that params.offset can fit in
Pawel Osciak 2016/01/25 08:20:02 GNU defines off_t as 32 or 64 bit, so there it wou
Owen Lin 2016/01/25 09:30:59 Good catch, code modified.
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