Extra info from j2c decoder in case of cache corruption
This commit is contained in:
@@ -168,7 +168,7 @@ BOOL LLImageJ2COJ::decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decod
|
|||||||
// dereference the array.
|
// dereference the array.
|
||||||
if(!image || !image->numcomps)
|
if(!image || !image->numcomps)
|
||||||
{
|
{
|
||||||
llwarns << "ERROR -> decodeImpl: failed to decode image!" << llendl;
|
llwarns << "failed to decode image!" << llendl;
|
||||||
if (image)
|
if (image)
|
||||||
{
|
{
|
||||||
opj_image_destroy(image);
|
opj_image_destroy(image);
|
||||||
@@ -183,6 +183,7 @@ BOOL LLImageJ2COJ::decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decod
|
|||||||
{
|
{
|
||||||
if (image->comps[i].factor != base.getRawDiscardLevel())
|
if (image->comps[i].factor != base.getRawDiscardLevel())
|
||||||
{
|
{
|
||||||
|
llwarns << "Expected discard level not reached!" << llendl;
|
||||||
// if we didn't get the discard level we're expecting, fail
|
// if we didn't get the discard level we're expecting, fail
|
||||||
opj_image_destroy(image);
|
opj_image_destroy(image);
|
||||||
base.decodeFailed();
|
base.decodeFailed();
|
||||||
|
|||||||
Reference in New Issue
Block a user