diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-04-12 04:26:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-04-12 04:26:06 +0300 |
commit | 4a64b36029872034c9c138738010ced47b48e045 (patch) | |
tree | 4880dd52734a808c94cb74f69cc7a58a2855c584 /source/blender/imbuf/intern/jp2.c | |
parent | a2db16ba58a16be246f7f018ee78918d9c8a8aff (diff) |
Cleanup: use bool
Diffstat (limited to 'source/blender/imbuf/intern/jp2.c')
-rw-r--r-- | source/blender/imbuf/intern/jp2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/jp2.c b/source/blender/imbuf/intern/jp2.c index 570ca5ba06e..390f2502ee7 100644 --- a/source/blender/imbuf/intern/jp2.c +++ b/source/blender/imbuf/intern/jp2.c @@ -63,12 +63,12 @@ enum { DCP_CINEMA4K = 4, }; -static int check_jp2(const unsigned char *mem) /* J2K_CFMT */ +static bool check_jp2(const unsigned char *mem) /* J2K_CFMT */ { return memcmp(JP2_HEAD, mem, sizeof(JP2_HEAD)) ? 0 : 1; } -static int check_j2k(const unsigned char *mem) /* J2K_CFMT */ +static bool check_j2k(const unsigned char *mem) /* J2K_CFMT */ { return memcmp(J2K_HEAD, mem, sizeof(J2K_HEAD)) ? 0 : 1; } @@ -133,7 +133,7 @@ struct ImBuf *imb_jp2_decode(const unsigned char *mem, size_t size, int flags, c unsigned int i, i_next, w, h, planes; unsigned int y; int *r, *g, *b, *a; /* matching 'opj_image_comp.data' type */ - int is_jp2, is_j2k; + bool is_jp2, is_j2k; opj_dparameters_t parameters; /* decompression parameters */ |