| Index: webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc
|
| diff --git a/webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc b/webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc
|
| index a9d892310a237192d7045d438dff502d11df46df..e6f0d2d866735c1a209920af9adc36a3dd6c664b 100644
|
| --- a/webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc
|
| +++ b/webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc
|
| @@ -333,9 +333,9 @@ base::TimeDelta FFmpegCdmAudioDecoder::GetNextOutputTimestamp() const {
|
| }
|
|
|
| void FFmpegCdmAudioDecoder::SerializeInt64(int64 value) {
|
| - const uint8_t* ptr = reinterpret_cast<uint8_t*>(&value);
|
| - serialized_audio_frames_.insert(serialized_audio_frames_.end(),
|
| - ptr, ptr + sizeof(value));
|
| + int previous_size = serialized_audio_frames_.size();
|
| + serialized_audio_frames_.resize(previous_size + sizeof(value));
|
| + memcpy(&serialized_audio_frames_[0] + previous_size, &value, sizeof(value));
|
| }
|
|
|
| } // namespace webkit_media
|
|
|