summaryrefslogtreecommitdiff
path: root/chromium/media/parsers
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/media/parsers')
-rw-r--r--chromium/media/parsers/vp8_bool_decoder.cc11
-rw-r--r--chromium/media/parsers/vp8_bool_decoder.h1
-rw-r--r--chromium/media/parsers/vp8_parser.cc1
3 files changed, 6 insertions, 7 deletions
diff --git a/chromium/media/parsers/vp8_bool_decoder.cc b/chromium/media/parsers/vp8_bool_decoder.cc
index 17607732f69..fb715e5ea29 100644
--- a/chromium/media/parsers/vp8_bool_decoder.cc
+++ b/chromium/media/parsers/vp8_bool_decoder.cc
@@ -82,15 +82,14 @@ static const unsigned char kVp8Norm[256] = {
};
Vp8BoolDecoder::Vp8BoolDecoder()
- : user_buffer_(NULL),
- user_buffer_end_(NULL),
+ : user_buffer_(nullptr),
+ user_buffer_end_(nullptr),
value_(0),
count_(-8),
- range_(255) {
-}
+ range_(255) {}
bool Vp8BoolDecoder::Initialize(const uint8_t* data, size_t size) {
- if (data == NULL || size == 0)
+ if (data == nullptr || size == 0)
return false;
user_buffer_start_ = data;
user_buffer_ = data;
@@ -102,7 +101,7 @@ bool Vp8BoolDecoder::Initialize(const uint8_t* data, size_t size) {
}
void Vp8BoolDecoder::FillDecoder() {
- DCHECK(user_buffer_ != NULL);
+ DCHECK(user_buffer_ != nullptr);
int shift = VP8_BD_VALUE_BIT - CHAR_BIT - (count_ + CHAR_BIT);
size_t bytes_left = user_buffer_end_ - user_buffer_;
size_t bits_left = bytes_left * CHAR_BIT;
diff --git a/chromium/media/parsers/vp8_bool_decoder.h b/chromium/media/parsers/vp8_bool_decoder.h
index 0f407cfbcc9..db3daade283 100644
--- a/chromium/media/parsers/vp8_bool_decoder.h
+++ b/chromium/media/parsers/vp8_bool_decoder.h
@@ -47,7 +47,6 @@
#include <stdint.h>
#include <sys/types.h>
-#include "base/logging.h"
#include "base/macros.h"
#include "media/parsers/media_parsers_export.h"
diff --git a/chromium/media/parsers/vp8_parser.cc b/chromium/media/parsers/vp8_parser.cc
index b52c59fd070..8559540395c 100644
--- a/chromium/media/parsers/vp8_parser.cc
+++ b/chromium/media/parsers/vp8_parser.cc
@@ -9,6 +9,7 @@
#include <cstring>
+#include "base/check_op.h"
#include "base/logging.h"
namespace media {