Speedup for cr2 decode

This commit is contained in:
heckflosse
2016-06-12 18:13:01 +02:00
parent ea9dfc9c5c
commit f794cf684b
2 changed files with 39 additions and 18 deletions

View File

@@ -79,7 +79,7 @@ inline void fseek (IMFILE* f, int p, int how)
inline int fgetc (IMFILE* f)
{
if (f->pos < f->size) {
if (LIKELY(f->pos < f->size)) {
if (f->plistener && ++f->progress_current >= f->progress_next) {
imfile_update_progress(f);
}