X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fopenjp3d%2Fcio.c;h=fb42beecfb2e80973ded0c412b0f5a24f9390208;hb=ef01f18dfc6780b776d0674ed3e7415c6ef54d24;hp=10bd2af329bbe9faf64f512f4cab4b68b95bf592;hpb=caaec3bb05b3ecaa4cf6bc8b59b7abd401faa42c;p=openjpeg.git diff --git a/src/lib/openjp3d/cio.c b/src/lib/openjp3d/cio.c index 10bd2af3..fb42beec 100644 --- a/src/lib/openjp3d/cio.c +++ b/src/lib/openjp3d/cio.c @@ -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) 2001-2003, David Janssens * Copyright (c) 2002-2003, Yannick Verschueren * Copyright (c) 2003-2005, Francois Devaux and Antonin Descampe @@ -58,6 +63,7 @@ opj_cio_t* OPJ_CALLCONV opj_cio_open(opj_common_ptr cinfo, unsigned char *buffer cio->length = cp->tdx * cp->tdy * cp->tdz * cp->tw * cp->th * cp->tl * 4; cio->buffer = (unsigned char *)opj_malloc(cio->length); if(!cio->buffer) { + opj_event_msg(cio->cinfo, EVT_ERROR, "Error allocating memory for compressed bitstream\n"); opj_free(cio); return NULL; }