mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 01:44:40 +02:00
14 lines
710 B
Diff
14 lines
710 B
Diff
diff --git a/src/image/formats/Jpeg.cpp b/src/image/formats/Jpeg.cpp
|
|
index 6ba39bc..0b5b714 100644
|
|
--- a/src/image/formats/Jpeg.cpp
|
|
+++ b/src/image/formats/Jpeg.cpp
|
|
@@ -9,9 +9,6 @@ std::expected<cairo_surface_t*, std::string> JPEG::createSurfaceFromJPEG(const s
|
|
if (!std::filesystem::exists(path))
|
|
return std::unexpected("loading jpeg: file doesn't exist");
|
|
|
|
- if (__BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__)
|
|
- return std::unexpected("loading jpeg: cannot load on big endian");
|
|
-
|
|
std::ifstream file(path, std::ios::binary | std::ios::ate);
|
|
file.exceptions(std::ifstream::failbit | std::ifstream::badbit | std::ifstream::eofbit);
|
|
std::vector<uint8_t> bytes(file.tellg());
|