diff options
Diffstat (limited to 'drivers/jpegd/image_loader_jpegd.cpp')
-rw-r--r-- | drivers/jpegd/image_loader_jpegd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/jpegd/image_loader_jpegd.cpp b/drivers/jpegd/image_loader_jpegd.cpp index 913a7bdf39..496334605d 100644 --- a/drivers/jpegd/image_loader_jpegd.cpp +++ b/drivers/jpegd/image_loader_jpegd.cpp @@ -129,6 +129,8 @@ static Image _jpegd_mem_loader_func(const uint8_t* p_png,int p_size) { Image img; Error err = jpeg_load_image_from_buffer(&img,p_png,p_size); + if (err) + ERR_PRINT("Couldn't initialize ImageLoaderJPG with the given resource."); return img; } |