Chromium Code Reviews| Index: media/formats/mp4/box_definitions.cc |
| diff --git a/media/formats/mp4/box_definitions.cc b/media/formats/mp4/box_definitions.cc |
| index 72809cfdffdd542a7c97b2563f97bb935bc79779..9dfbf52cb5f8fc5e8fb86a2e9631ce704b067d9d 100644 |
| --- a/media/formats/mp4/box_definitions.cc |
| +++ b/media/formats/mp4/box_definitions.cc |
| @@ -26,7 +26,9 @@ ProtectionSystemSpecificHeader::~ProtectionSystemSpecificHeader() {} |
| FourCC ProtectionSystemSpecificHeader::BoxType() const { return FOURCC_PSSH; } |
| bool ProtectionSystemSpecificHeader::Parse(BoxReader* reader) { |
| - // Don't bother validating the box's contents. |
| + // Don't bother validating the box's contents other than type(). |
|
ddorwin
2015/06/25 23:08:17
It's not "don't bother" - it's Fail if not the cor
jrummell
2015/06/30 00:06:03
The "don't bother" is in relation to all the other
|
| + RCHECK(reader->type() == BoxType()); |
| + |
| // Copy the entire box, including the header, for passing to EME as initData. |
| DCHECK(raw_box.empty()); |
| raw_box.assign(reader->data(), reader->data() + reader->size()); |