From d31e6c970dd0599ca7e91b03dbb6363acec62e3c Mon Sep 17 00:00:00 2001 From: Frank Galligan Date: Fri, 29 Apr 2016 17:09:00 -0700 Subject: [PATCH] Fix profile 2 in vp9_header_parser. BUG=https://bugs.chromium.org/p/webm/issues/detail?id=1208 Change-Id: Ie31adef15eac965e3fb587825f63ff320c1d59fe --- common/vp9_header_parser.cc | 3 ++- webm_info.cc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/vp9_header_parser.cc b/common/vp9_header_parser.cc index 8590594..e58b19b 100644 --- a/common/vp9_header_parser.cc +++ b/common/vp9_header_parser.cc @@ -40,7 +40,8 @@ bool Vp9HeaderParser::ParseUncompressedHeader() { return false; } - profile_ = VpxReadLiteral(2); + profile_ = ReadBit(); + profile_ |= ReadBit() << 1; if (profile_ > 2) profile_ += ReadBit(); diff --git a/webm_info.cc b/webm_info.cc index 0b991c6..424553a 100644 --- a/webm_info.cc +++ b/webm_info.cc @@ -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();