| Index: webrtc/modules/video_coding/utility/vp8_header_parser.cc
|
| diff --git a/webrtc/modules/video_coding/utility/vp8_header_parser.cc b/webrtc/modules/video_coding/utility/vp8_header_parser.cc
|
| index 13d1616210d4da04e16d881a6a495da9514a591b..631385d0f25095903e676f79dc24e04ea1e1c6cd 100644
|
| --- a/webrtc/modules/video_coding/utility/vp8_header_parser.cc
|
| +++ b/webrtc/modules/video_coding/utility/vp8_header_parser.cc
|
| @@ -43,12 +43,12 @@ static void VP8LoadNewBytes(VP8BitReader* const br) {
|
| const uint32_t in_bits = *(const uint32_t*)(br->buf_);
|
| br->buf_ += BITS >> 3;
|
| #if defined(WEBRTC_ARCH_BIG_ENDIAN)
|
| - bits = static_cast<uint32_t>(in_bits);
|
| - if (BITS != 8 * sizeof(uint32_t))
|
| - bits >>= (8 * sizeof(uint32_t) - BITS);
|
| + bits = static_cast<uint32_t>(in_bits);
|
| + if (BITS != 8 * sizeof(uint32_t))
|
| + bits >>= (8 * sizeof(uint32_t) - BITS);
|
| #else
|
| - bits = BSwap32(in_bits);
|
| - bits >>= 32 - BITS;
|
| + bits = BSwap32(in_bits);
|
| + bits >>= 32 - BITS;
|
| #endif
|
| br->value_ = bits | (br->value_ << BITS);
|
| br->bits_ += BITS;
|
| @@ -60,12 +60,12 @@ static void VP8LoadNewBytes(VP8BitReader* const br) {
|
| static void VP8InitBitReader(VP8BitReader* const br,
|
| const uint8_t* const start,
|
| const uint8_t* const end) {
|
| - br->range_ = 255 - 1;
|
| - br->buf_ = start;
|
| + br->range_ = 255 - 1;
|
| + br->buf_ = start;
|
| br->buf_end_ = end;
|
| - br->value_ = 0;
|
| - br->bits_ = -8; // To load the very first 8bits.
|
| - br->eof_ = 0;
|
| + br->value_ = 0;
|
| + br->bits_ = -8; // To load the very first 8bits.
|
| + br->eof_ = 0;
|
| VP8LoadNewBytes(br);
|
| }
|
|
|
| @@ -122,7 +122,7 @@ static void ParseSegmentHeader(VP8BitReader* br) {
|
| int s;
|
| VP8Get(br);
|
| for (s = 0; s < NUM_MB_SEGMENTS; ++s) {
|
| - VP8Get(br) ? VP8GetSignedValue(br, 7) : 0;
|
| + VP8Get(br) ? VP8GetSignedValue(br, 7) : 0;
|
| }
|
| for (s = 0; s < NUM_MB_SEGMENTS; ++s) {
|
| VP8Get(br) ? VP8GetSignedValue(br, 6) : 0;
|
|
|