Forgot to actually set argtypes for openjp2 read_header function. #125
This commit is contained in:
parent
89c0863706
commit
9422bccffb
1 changed files with 1 additions and 1 deletions
|
|
@ -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)()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue