Fix NULL issues in render_templates_hq.h
This commit is contained in:
parent
02484abce3
commit
a0eafc9d8e
1 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,9 @@ static inline void conc2d(InitLUTs,SBPP)(void)
|
|||
int Y, u, v;
|
||||
|
||||
_RGBtoYUV = (Bit32u *)malloc(65536 * sizeof(Bit32u));
|
||||
if (_RGBtoYUV == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (int color = 0; color < 65536; ++color) {
|
||||
#if SBPP == 32
|
||||
|
|
Loading…
Add table
Reference in a new issue