add test/data for video support : gix issue in riff video and reference data test

This commit is contained in:
Mohamed Ali Chebbi 2023-01-23 01:39:16 +01:00
parent 82ea6bef52
commit bbb3f5afa8
3 changed files with 1 additions and 3 deletions

View File

@ -101,7 +101,7 @@ class EXIV2API AsfVideo : public Image {
remaining_size_ = size_ - GUID - QWORD;
}
[[nodiscard]] uint64_t getSize() const {
[[nodiscard]] uint64_t getSize() const {
return size_;
}

View File

@ -441,8 +441,6 @@ std::string RiffVideo::mimeType() const {
@return Returns true if the buffer value is equal to string.
*/
bool RiffVideo::equalsRiffTag(Exiv2::DataBuf& buf, const char* str) {
if (buf.size() != RIFF_TAG_SIZE)
return false;
for (size_t i = 0; i < RIFF_TAG_SIZE; i++)
if (toupper(buf.data()[i]) != str[i])
return false;