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:
parent
6a1c90b6d8
commit
fb6e0e88bb
1 changed files with 0 additions and 4 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue