fseek is not guaranteed to succeed and can fail, e.g when trying to seek a pipe. the first fseek() is not error checked since if it failed, ftell would return 0. also check for fread errors too before calling qoi_decode().
18 KiB
18 KiB