From abe088c58aeb876d1471fa99e0fc5c1d85cb1403 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 9 Dec 2011 09:36:41 +0100 Subject: Fix: wrong order of pixels when using SSE --- test/ipedec.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/ipedec.c') diff --git a/test/ipedec.c b/test/ipedec.c index 94c8d59..f14498d 100644 --- a/test/ipedec.c +++ b/test/ipedec.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -42,8 +43,11 @@ int main(int argc, char const* argv[]) char *buffer = NULL; size_t num_bytes = 0; - if (read_raw_file(argv[1], &buffer, &num_bytes)) + int error = read_raw_file(argv[1], &buffer, &num_bytes); + if (error) { + printf("file reading error: %s\n", strerror(error)); return EXIT_FAILURE; + } const int rows = atoi(argv[2]); @@ -55,6 +59,7 @@ int main(int argc, char const* argv[]) struct timeval start, end; long seconds = 0L, useconds = 0L; + FILE *fp = fopen("test.raw", "wb"); while (!err) { -- cgit v1.2.3