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

Side by Side Diff: media/cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.h" 5 #include "media/cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 10
9 #include "base/logging.h" 11 #include "base/logging.h"
10 #include "media/base/audio_bus.h" 12 #include "media/base/audio_bus.h"
11 #include "media/base/audio_timestamp_helper.h" 13 #include "media/base/audio_timestamp_helper.h"
12 #include "media/base/data_buffer.h" 14 #include "media/base/data_buffer.h"
13 #include "media/base/limits.h" 15 #include "media/base/limits.h"
14 #include "media/base/timestamp_constants.h" 16 #include "media/base/timestamp_constants.h"
15 #include "media/ffmpeg/ffmpeg_common.h" 17 #include "media/ffmpeg/ffmpeg_common.h"
16 18
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 av_frame_.reset(); 422 av_frame_.reset();
421 } 423 }
422 424
423 void FFmpegCdmAudioDecoder::SerializeInt64(int64_t value) { 425 void FFmpegCdmAudioDecoder::SerializeInt64(int64_t value) {
424 const size_t previous_size = serialized_audio_frames_.size(); 426 const size_t previous_size = serialized_audio_frames_.size();
425 serialized_audio_frames_.resize(previous_size + sizeof(value)); 427 serialized_audio_frames_.resize(previous_size + sizeof(value));
426 memcpy(&serialized_audio_frames_[0] + previous_size, &value, sizeof(value)); 428 memcpy(&serialized_audio_frames_[0] + previous_size, &value, sizeof(value));
427 } 429 }
428 430
429 } // namespace media 431 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698