From 7ea32025d6e40d8a9ba6bf8c2b2374f7dd373109 Mon Sep 17 00:00:00 2001 From: Mohamed Ali Chebbi Date: Fri, 3 Feb 2023 08:50:25 +0100 Subject: [PATCH] add test/data for video support : Format issue --- src/riffvideo.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/riffvideo.cpp b/src/riffvideo.cpp index 1f702e29..9d953b40 100644 --- a/src/riffvideo.cpp +++ b/src/riffvideo.cpp @@ -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; }