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

Unified Diff: media/gpu/android_video_decode_accelerator.cc

Issue 2258113002: [AVDA] Use InMilliseconds with presentation_timestamp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « media/gpu/android_video_decode_accelerator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/android_video_decode_accelerator.cc
diff --git a/media/gpu/android_video_decode_accelerator.cc b/media/gpu/android_video_decode_accelerator.cc
index 41d3f550768b03219f98c57608a678c0e74ca8ad..af1e5513b70d09b60809e1b750c2c5f4283ea62e 100644
--- a/media/gpu/android_video_decode_accelerator.cc
+++ b/media/gpu/android_video_decode_accelerator.cc
@@ -706,7 +706,7 @@ bool AndroidVideoDecodeAccelerator::QueueInput() {
// buffer id in the returned Pictures to map a bitstream buffer back to a
// timestamp on their side, so either one of the bitstream buffer ids will
// result in them finding the right timestamp.
- bitstream_buffers_in_decoder_[presentation_timestamp] = bitstream_buffer.id();
+ bitstream_buffers_in_decoder_[presentation_timestamp.InMilliseconds()] = bitstream_buffer.id();
// Notice that |memory| will be null if we repeatedly enqueue the same buffer,
// this happens after MEDIA_CODEC_NO_KEY.
@@ -881,7 +881,7 @@ bool AndroidVideoDecodeAccelerator::DequeueOutput() {
}
// Get the bitstream buffer id from the timestamp.
- auto it = bitstream_buffers_in_decoder_.find(presentation_timestamp);
+ auto it = bitstream_buffers_in_decoder_.find(presentation_timestamp.InMilliseconds());
if (it != bitstream_buffers_in_decoder_.end()) {
const int32_t bitstream_buffer_id = it->second;
« no previous file with comments | « media/gpu/android_video_decode_accelerator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698