add test/data for video support : Format issue

This commit is contained in:
Mohamed Ali Chebbi
2023-02-03 08:50:25 +01:00
parent f9b94d3172
commit 7ea32025d6
+2 -3
View File
@@ -382,8 +382,7 @@ void RiffVideo::readMetadata() {
HeaderReader header(io_);
xmpData_["Xmp.video.Container"] = header.getId();
DataBuf FileType = io_->read(DWORD);
xmpData_["Xmp.video.FileType"] = FileType.data();
xmpData_["Xmp.video.FileType"] = readStringTag(io_);
decodeBlocks();
} // RiffVideo::readMetadata
@@ -810,7 +809,7 @@ bool isRiffType(BasicIo& iIo, bool advance) {
}
bool matched = (memcmp(buf, RiffVideoId, len) == 0);
if (!advance || !matched) {
iIo.seek(-1*len, BasicIo::cur);
iIo.seek(-1 * len, BasicIo::cur);
}
return matched;
}