From bbb3f5afa89d8119f1a7ac217eeedbc26db8abf8 Mon Sep 17 00:00:00 2001 From: Mohamed Ali Chebbi Date: Mon, 23 Jan 2023 01:39:16 +0100 Subject: [PATCH] add test/data for video support : gix issue in riff video and reference data test --- include/exiv2/asfvideo.hpp | 2 +- src/riffvideo.cpp | 2 -- .../sample_960x540.asf.out | Bin 1854 -> 1433 bytes 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/exiv2/asfvideo.hpp b/include/exiv2/asfvideo.hpp index 5ef30159..e41c6602 100644 --- a/include/exiv2/asfvideo.hpp +++ b/include/exiv2/asfvideo.hpp @@ -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_; } diff --git a/src/riffvideo.cpp b/src/riffvideo.cpp index d2a49513..15de358b 100644 --- a/src/riffvideo.cpp +++ b/src/riffvideo.cpp @@ -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; diff --git a/test/data/test_reference_files/sample_960x540.asf.out b/test/data/test_reference_files/sample_960x540.asf.out index efc6195cf259425a8647e7402ccbcf375c85aaf6..cef430552e6972bd561514e909be9ec396f7a979 100644 GIT binary patch delta 272 zcmdnTHD^F^dDqw=5cpRti3eWof47dKSidh6V-< zItm1I2x01&Je$>xFR?TwGhfd+KP5HUFEMwbp!8$~W}e9l*yQ+;WIXfI@+T%rO`gES c!)v0T;2U6K3?V0fW3%D`vJI_(E(Q`@032dQm;e9( delta 426 zcmbQqy^n80FcZJ2f`Xx$iHRAMnw-UC1r{?l28)5H$-9{vlnhOPDvS*+O$?1K&5ezX z4UN$GlYN=31S}L3auc)ii{g`t67y0RbSCq&h%xF+UdJpBB<)x<