Forgot to actually set argtypes for openjp2 read_header function. #125

This commit is contained in:
John Evans 2013-10-01 10:55:28 -04:00
commit 9422bccffb

View file

@ -926,7 +926,7 @@ def read_header(stream, codec):
"""
ARGTYPES = [STREAM_TYPE_P, CODEC_TYPE,
ctypes.POINTER(ctypes.POINTER(ImageType))]
OPENJP2.opj_read_header.argtypes
OPENJP2.opj_read_header.argtypes = ARGTYPES
OPENJP2.opj_read_header.restype = check_error
imagep = ctypes.POINTER(ImageType)()