logic typo fix

This commit is contained in:
Dmitry Selitsky 2014-04-16 16:07:43 +03:00
parent 994c9a7e56
commit d5b09509be

View File

@ -45,7 +45,7 @@ def _parse_codestream(fp):
elif csiz == 3:
mode = 'RGB'
elif csiz == 4:
mode == 'RGBA'
mode = 'RGBA'
else:
mode = None
@ -122,7 +122,7 @@ def _parse_jp2_header(fp):
if nc == 3:
mode = 'RGB'
elif nc == 4:
mode == 'RGBA'
mode = 'RGBA'
break
return (size, mode)