| 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;
|
|
|