| 237 | } // AsfVideo::readMetadata |
| 238 | |
| 239 | AsfVideo::HeaderReader::HeaderReader(const BasicIo::UniquePtr& io) : IdBuf_(GUID) { |
| 240 | if (io->size() >= io->tell() + GUID + QWORD) { |
| 241 | io->readOrThrow(IdBuf_.data(), IdBuf_.size(), Exiv2::ErrorCode::kerCorruptedMetadata); |
| 242 | |
| 243 | size_ = readQWORDTag(io); |
| 244 | if (size_ >= GUID + QWORD) |
| 245 | remaining_size_ = size_ - GUID - QWORD; |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | void AsfVideo::decodeBlock() { |
| 250 | Internal::enforce(GUID + QWORD <= io_->size() - io_->tell(), Exiv2::ErrorCode::kerCorruptedMetadata); |
nothing calls this directly
no test coverage detected