| 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 631385d0f25095903e676f79dc24e04ea1e1c6cd..d88fb6cc21ec4873c4d6763d99d0a2ec2a6463d3 100644
|
| --- a/webrtc/modules/video_coding/utility/vp8_header_parser.cc
|
| +++ b/webrtc/modules/video_coding/utility/vp8_header_parser.cc
|
| @@ -74,8 +74,9 @@ static int VP8GetBit(VP8BitReader* const br, int prob) {
|
| uint8_t range = br->range_;
|
| if (br->bits_ < 0) {
|
| VP8LoadNewBytes(br);
|
| + if (br->eof_)
|
| + return 0;
|
| }
|
| -
|
| const int pos = br->bits_;
|
| const uint8_t split = (range * prob) >> 8;
|
| const uint8_t value = static_cast<uint8_t>(br->value_ >> pos);
|
|
|