init_video_pixel_converter - return false if calloc failed
This commit is contained in:
parent
341579f7b6
commit
e76f8b9a71
|
@ -55,6 +55,9 @@ bool init_video_pixel_converter(unsigned size)
|
||||||
|
|
||||||
driver->scaler_out = calloc(sizeof(uint16_t), size * size);
|
driver->scaler_out = calloc(sizeof(uint16_t), size * size);
|
||||||
|
|
||||||
|
if (!driver->scaler_out)
|
||||||
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue