Remove several unused variables in zmbv
This commit is contained in:
parent
bdee95848e
commit
618ab5ea08
1 changed files with 2 additions and 6 deletions
|
@ -194,13 +194,9 @@ INLINE void VideoCodec::AddXorBlock(int vx,int vy,FrameBlock * block) {
|
|||
|
||||
template<class P>
|
||||
void VideoCodec::AddXorFrame(void) {
|
||||
int written=0;
|
||||
int lastvector=0;
|
||||
signed char * vectors=(signed char*)&work[workUsed];
|
||||
/* Align the following xor data on 4 byte boundary*/
|
||||
workUsed=(workUsed + blockcount*2 +3) & ~3;
|
||||
int totalx=0;
|
||||
int totaly=0;
|
||||
for (int b=0;b<blockcount;b++) {
|
||||
FrameBlock * block=&blocks[b];
|
||||
int bestvx = 0;
|
||||
|
@ -362,7 +358,7 @@ int VideoCodec::FinishCompressFrame( void ) {
|
|||
zstream.next_out = (Bytef *)(compress.writeBuf + compress.writeDone);
|
||||
zstream.avail_out = compress.writeSize - compress.writeDone;
|
||||
zstream.total_out = 0;
|
||||
int res = deflate(&zstream, Z_SYNC_FLUSH);
|
||||
deflate(&zstream, Z_SYNC_FLUSH);
|
||||
return compress.writeDone + zstream.total_out;
|
||||
}
|
||||
|
||||
|
@ -432,7 +428,7 @@ bool VideoCodec::DecompressFrame(void * framedata, int size) {
|
|||
zstream.next_out = (Bytef *)work;
|
||||
zstream.avail_out = bufsize;
|
||||
zstream.total_out = 0;
|
||||
int res = inflate(&zstream, Z_FINISH);
|
||||
inflate(&zstream, Z_FINISH);
|
||||
workUsed= zstream.total_out;
|
||||
workPos = 0;
|
||||
if (tag & Mask_KeyFrame) {
|
||||
|
|
Loading…
Add table
Reference in a new issue