DescriptionSet error on unrecognized top-level BMFF boxes.
A common error when using BMFF with Media Source is to begin appending at an
incorrect offset, such that the parser sees an extremely large value for the
box size and consequently waits forever for input without failing. This change
adds a whitelist of permitted top-level boxes, which allows these situations
to be detected as soon as the header is read.
BUG=
TEST=BoxReaderTest.WrongFourCCTest
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149735
Patch Set 1 #Patch Set 2 : Remove FourCCs used only for testing #
Total comments: 10
Patch Set 3 : Review comments #Patch Set 4 : Update comment #
Messages
Total messages: 6 (0 generated)
|