Index: webkit/media/crypto/ppapi/clear_key_cdm.cc |
diff --git a/webkit/media/crypto/ppapi/clear_key_cdm.cc b/webkit/media/crypto/ppapi/clear_key_cdm.cc |
index dd6a3dc3427cb8d5d342454749d7d7e84c3e7710..17a5f48af98fbb52c02e273086379c4332ff6ae0 100644 |
--- a/webkit/media/crypto/ppapi/clear_key_cdm.cc |
+++ b/webkit/media/crypto/ppapi/clear_key_cdm.cc |
@@ -492,9 +492,12 @@ void ClearKeyCdm::GenerateFakeAudioFrames(cdm::AudioFrames* audio_frames) { |
const int kHeaderSize = sizeof(timestamp) + sizeof(frame_size); |
audio_frames->set_buffer(allocator_->Allocate(kHeaderSize + frame_size)); |
- int64* data = reinterpret_cast<int64*>(audio_frames->buffer()->data()); |
- *(data++) = timestamp; |
- *(data++) = frame_size; |
+ uint8_t* data = audio_frames->buffer()->data(); |
+ |
+ memcpy(data, ×tamp, sizeof(timestamp)); |
+ data += sizeof(timestamp); |
+ memcpy(data, &frame_size, sizeof(frame_size)); |
+ data += sizeof(frame_size); |
// You won't hear anything because we have all zeros here. But the video |
// should play just fine! |
memset(data, 0, frame_size); |