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

Unified Diff: media/filters/h264_bit_reader.h

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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 side-by-side diff with in-line comments
Download patch
Index: media/filters/h264_bit_reader.h
diff --git a/media/filters/h264_bit_reader.h b/media/filters/h264_bit_reader.h
index 01cfd74109fa92b87b8901c8d69ab260594d27f8..f201131d2718ad713b9e652c4968bdf60da5f342 100644
--- a/media/filters/h264_bit_reader.h
+++ b/media/filters/h264_bit_reader.h
@@ -7,9 +7,10 @@
#ifndef MEDIA_FILTERS_H264_BIT_READER_H_
#define MEDIA_FILTERS_H264_BIT_READER_H_
+#include <stdint.h>
#include <sys/types.h>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "media/base/media_export.h"
namespace media {
@@ -28,7 +29,7 @@ class MEDIA_EXPORT H264BitReader {
// Return false on insufficient size of stream..
// TODO(posciak,fischman): consider replacing Initialize() with
// heap-allocating and creating bit readers on demand instead.
- bool Initialize(const uint8* data, off_t size);
+ bool Initialize(const uint8_t* data, off_t size);
// Read |num_bits| next bits from stream and return in |*out|, first bit
// from the stream starting at |num_bits| position in |*out|.
@@ -52,7 +53,7 @@ class MEDIA_EXPORT H264BitReader {
bool UpdateCurrByte();
// Pointer to the next unread (not in curr_byte_) byte in the stream.
- const uint8* data_;
+ const uint8_t* data_;
// Bytes left in the stream (without the curr_byte_).
off_t bytes_left_;

Powered by Google App Engine
This is Rietveld 408576698