Fix unsigned int overflow reported by UBSan (#761)
[openjpeg.git] / src / lib / openjp2 / image.h
index a6cd9f58e33a909bf2edd7d845911d481e7c7d59..e0e2772d406472c782d081af55f235d6dc554000 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) 2005, Herve Drolon, FreeImage Team
  * All rights reserved.
  *
@@ -33,7 +38,7 @@ The functions in IMAGE.C have for goal to realize operations on images.
 */
 
 struct opj_image;
-struct opj_cp_v2;
+struct opj_cp;
 
 /** @defgroup IMAGE IMAGE - Implementation of operations on images */
 /*@{*/
@@ -53,7 +58,7 @@ opj_image_t* opj_image_create0(void);
  * @param p_image_header               the image header to update.
  * @param p_cp                                 the coding parameters from which to update the image.
  */
-void opj_image_comp_header_update(opj_image_t * p_image, const struct opj_cp_v2* p_cp);
+void opj_image_comp_header_update(opj_image_t * p_image, const struct opj_cp* p_cp);
 
 void opj_copy_image_header(const opj_image_t* p_image_src, opj_image_t* p_image_dest);