1
0
Fork 0

Fix NULL issues in zmbv.cpp

There is no sense in testing the pointers against null, as the memory was allocated using
the 'new' operator, which throws an exception.
This commit is contained in:
krcroft 2020-01-16 14:46:22 -08:00 committed by Patryk Obara
parent 6a1c90b6d8
commit fb6e0e88bb

View file

@ -97,10 +97,6 @@ bool VideoCodec::SetupBuffers(zmbv_format_t _format, int blockwidth, int blockhe
blockcount=yblocks*xblocks;
blocks=new FrameBlock[blockcount];
if (!buf1 || !buf2 || !work || !blocks) {
FreeBuffers();
return false;
}
int y,x,i;
i=0;
for (y=0;y<yblocks;y++) {