Add missing checks. Fix crash on failed allocation.
[openjpeg.git] / src / lib / openjp2 / invert.h
index c943ae30c0f9aca31b449e1f8d7a0576a0c38ab6..2fae8e54bdf163a3718b11d55738622dd099d69d 100644 (file)
@@ -1,4 +1,9 @@
 /*
+ * The copyright in this software is being made available under the 2-clauses 
+ * BSD License, included below. This software may be subject to other third 
+ * party and contributor rights, including patent rights, and no such rights
+ * are granted under this license.
+ *
  * Copyright (c) 2008, Jerome Fimes, Communications & Systemes <jerome.fimes@c-s.fr>
  * All rights reserved.
  *
@@ -48,9 +53,9 @@ The function in INVERT.H compute a matrix inversion with a LUP method
  * @param n size of the matrix
  * @return OPJ_TRUE if the inversion is successful, OPJ_FALSE if the matrix is singular.
  */
-opj_bool opj_matrix_inversion_f(OPJ_FLOAT32 * pSrcMatrix,
+OPJ_BOOL opj_matrix_inversion_f(OPJ_FLOAT32 * pSrcMatrix,
                                 OPJ_FLOAT32 * pDestMatrix, 
-                                OPJ_UINT32 n);
+                                OPJ_UINT32 nb_compo);
 /* ----------------------------------------------------------------------- */
 /*@}*/