From ce4b9f0ff962b61c223782f3e98a05830fee17d0 Mon Sep 17 00:00:00 2001 From: Christoph Hasse Date: Mon, 22 Aug 2022 18:10:42 +0200 Subject: [PATCH] fix(video) dont throw in isQTimeType --- src/quicktimevideo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/quicktimevideo.cpp b/src/quicktimevideo.cpp index 36ca3814..9b4380f9 100644 --- a/src/quicktimevideo.cpp +++ b/src/quicktimevideo.cpp @@ -1588,7 +1588,8 @@ Image::UniquePtr newQTimeInstance(BasicIo::UniquePtr io, bool /*create*/) { } bool isQTimeType(BasicIo& iIo, bool advance) { - auto buf = iIo.read(12); + auto buf = DataBuf(12); + iIo.read(buf.data(), 12); if (iIo.error() || iIo.eof()) { return false;