qoi: fix reports from quality scanner

struct QoiHeader is initialized to invalid values prior use,
it’s good to detect situations when we read incomplete data.
Add include in scanlineconverter.cpp so it can be used without
change in kf5 branch.
This commit is contained in:
Daniel Novomeský
2023-08-29 16:22:52 +02:00
parent 9173f02ea3
commit 2aea982e9e
2 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,7 @@
*/
#include "scanlineconverter_p.h"
#include <cstring>
ScanLineConverter::ScanLineConverter(const QImage::Format &targetFormat)
: _targetFormat(targetFormat)