[Bf-blender-cvs] [64d8158d45e] temp-openjpeg23: Fix incorrect is_read arg passed to opj_stream_create_from_file

Campbell Barton noreply at git.blender.org
Wed Jan 17 16:34:12 CET 2018


Commit: 64d8158d45ee3eb7e24323db53e86c0fd9633605
Author: Campbell Barton
Date:   Fri Nov 17 23:01:04 2017 +1100
Branches: temp-openjpeg23
https://developer.blender.org/rB64d8158d45ee3eb7e24323db53e86c0fd9633605

Fix incorrect is_read arg passed to opj_stream_create_from_file

===================================================================

M	source/blender/imbuf/intern/jp2.c

===================================================================

diff --git a/source/blender/imbuf/intern/jp2.c b/source/blender/imbuf/intern/jp2.c
index 923318fbe58..7a766e44a6b 100644
--- a/source/blender/imbuf/intern/jp2.c
+++ b/source/blender/imbuf/intern/jp2.c
@@ -332,7 +332,7 @@ ImBuf *imb_load_jp2_filepath(const char *filepath, int flags, char colorspace[IM
 {
 	FILE *p_file = NULL;
 	unsigned char mem[JP2_FILEHEADER_SIZE];
-	opj_stream_t *stream = opj_stream_create_from_file(filepath, OPJ_J2K_STREAM_CHUNK_SIZE, false, &p_file);
+	opj_stream_t *stream = opj_stream_create_from_file(filepath, OPJ_J2K_STREAM_CHUNK_SIZE, true, &p_file);
 	if (stream) {
 		return NULL;
 	}



More information about the Bf-blender-cvs mailing list