Commit 6a21ce38 authored by acolwell@chromium.org's avatar acolwell@chromium.org

Remove reserved value check in IndependentAndDisposableSamples.

Earlier versions of ISO 14496-12 indicated that the upper 2 bits of
the sample_info was reserved and must be 0. The current version of
ISO 14496-12:2012 now allows these bits to be non-zero so we need to
remove the check so the content will play. The new non-zero values are
not needed by the current code so we don't need any extra logic.

BUG=344737

Review URL: https://codereview.chromium.org/166323005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251989 0039d316-1c4b-4281-b951-d872f2087c98
parent b9ef52ec
......@@ -801,7 +801,6 @@ bool IndependentAndDisposableSamples::Parse(BoxReader* reader) {
for (int i = 0; i < sample_count; ++i) {
uint8 sample_info;
RCHECK(reader->Read1(&sample_info));
RCHECK((sample_info >> 6) == 0); // reserved.
sample_depends_on_[i] =
static_cast<SampleDependsOn>((sample_info >> 4) & 0x3);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment