1diff --git a/third_party/libopenjpeg20/jp2.c b/third_party/libopenjpeg20/jp2.c 2index 3ace09654..7ef7c9139 100644 3--- a/third_party/libopenjpeg20/jp2.c 4+++ b/third_party/libopenjpeg20/jp2.c 5@@ -1296,7 +1296,7 @@ static OPJ_BOOL opj_jp2_read_cmap(opj_jp2_t * jp2, 6 7 8 for (i = 0; i < nr_channels; ++i) { 9- opj_read_bytes(p_cmap_header_data, &l_value, 2); /* CMP^i */ 10+ opj_read_bytes_BE(p_cmap_header_data, &l_value, 2); /* CMP^i */ 11 p_cmap_header_data += 2; 12 cmap[i].cmp = (OPJ_UINT16) l_value; 13 14