|
|
@ -8,6 +8,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
// included header files
|
|
|
|
// included header files
|
|
|
|
#include "riffvideo.hpp"
|
|
|
|
#include "riffvideo.hpp"
|
|
|
|
|
|
|
|
#include "enforce.hpp"
|
|
|
|
#include "error.hpp"
|
|
|
|
#include "error.hpp"
|
|
|
|
#include "futils.hpp"
|
|
|
|
#include "futils.hpp"
|
|
|
|
#include "helper_functions.hpp"
|
|
|
|
#include "helper_functions.hpp"
|
|
|
@ -388,11 +389,10 @@ void RiffVideo::readMetadata() {
|
|
|
|
} // RiffVideo::readMetadata
|
|
|
|
} // RiffVideo::readMetadata
|
|
|
|
|
|
|
|
|
|
|
|
RiffVideo::HeaderReader::HeaderReader(BasicIo::UniquePtr& io) {
|
|
|
|
RiffVideo::HeaderReader::HeaderReader(BasicIo::UniquePtr& io) {
|
|
|
|
if (io->size() >= io->tell() + DWORD + DWORD) {
|
|
|
|
Internal::enforce(io->size() > io->tell() + DWORD + DWORD, Exiv2::ErrorCode::kerCorruptedMetadata);
|
|
|
|
id_ = readStringTag(io);
|
|
|
|
id_ = readStringTag(io);
|
|
|
|
size_ = readDWORDTag(io);
|
|
|
|
size_ = readDWORDTag(io);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool RiffVideo::equal(const std::string& str1, const std::string& str2) {
|
|
|
|
bool RiffVideo::equal(const std::string& str1, const std::string& str2) {
|
|
|
|
if (str1.size() != str2.size())
|
|
|
|
if (str1.size() != str2.size())
|
|
|
|