Fix profile 2 in vp9_header_parser.

BUG=https://bugs.chromium.org/p/webm/issues/detail?id=1208

Change-Id: Ie31adef15eac965e3fb587825f63ff320c1d59fe
This commit is contained in:
Frank Galligan 2016-04-29 17:09:00 -07:00
parent 4fc66dab83
commit d31e6c970d
2 changed files with 3 additions and 2 deletions

View File

@ -40,7 +40,8 @@ bool Vp9HeaderParser::ParseUncompressedHeader() {
return false;
}
profile_ = VpxReadLiteral(2);
profile_ = ReadBit();
profile_ |= ReadBit() << 1;
if (profile_ > 2)
profile_ += ReadBit();

View File

@ -35,7 +35,7 @@ using libwebm::Indent;
using libwebm::kNanosecondsPerSecond;
using libwebm::kNanosecondsPerSecondi;
const char VERSION_STRING[] = "1.0.4.3";
const char VERSION_STRING[] = "1.0.4.4";
struct Options {
Options();