Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.

Commit da46f19

Browse files
Update butteraugli_main.cc
1 parent 037eff7 commit da46f19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

butteraugli/butteraugli_main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ void FromSrgbToLinear(const std::vector<Image8>& rgb,
276276

277277
std::vector<Image8> ReadImageOrDie(const char* filename) {
278278
std::vector<Image8> rgb;
279-
FILE* f = fopen(filename, "r");
279+
FILE* f = fopen(filename, "rb");
280280
if (!f) {
281281
fprintf(stderr, "Cannot open %s\n", filename);
282282
exit(1);

0 commit comments

Comments
 (0)