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 efc6195c..cef43055 100644 Binary files a/test/data/test_reference_files/sample_960x540.asf.out and b/test/data/test_reference_files/sample_960x540.asf.out differ