diff --git a/gfx/video_pixel_converter.c b/gfx/video_pixel_converter.c index a7153ac25b..7c67ce77f3 100644 --- a/gfx/video_pixel_converter.c +++ b/gfx/video_pixel_converter.c @@ -55,6 +55,9 @@ bool init_video_pixel_converter(unsigned size) driver->scaler_out = calloc(sizeof(uint16_t), size * size); + if (!driver->scaler_out) + return false; + return true; }