diff --git a/programs/fileio.c b/programs/fileio.c index a2d9b8f3..2e8e4a6f 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -892,7 +892,6 @@ int getFileInfo(fileInfo_t* info, const char* inFileName){ if(numBytesRead != 4) break; U32 magicNumber = MEM_readLE32(magicNumberBuffer); if(magicNumber==ZSTD_MAGICNUMBER){ - DISPLAY("Hello\n"); int frameContentSizeBytes=0; info->numActualFrames++; BYTE frameHeaderDescriptor; @@ -948,27 +947,6 @@ int getFileInfo(fileInfo_t* info, const char* inFileName){ fseek(srcFile, frameSize, SEEK_CUR); } - - // int isSkippableFrame = 0; - // /* analyze the first 18 bytes (magic number + frame header) of the frame */ - // BYTE* frameHeaderBuffer = malloc(ZSTD_frameHeaderSize_max); - // fread(frameHeaderBuffer, ZSTD_frameHeaderSize_max, 1, srcFile); - // info->decompressedSize += ZSTD_getFrameContentSize((void*)frameHeaderBuffer, ZSTD_FRAMEHEADERSIZE_MAX); - // U32 magicNumber = frameHeaderBuffer[0] + (frameHeaderBuffer[1] << 8) + (frameHeaderBuffer[2] << 16) + (frameHeaderBuffer[3] << 24); - // if(magicNumber==ZSTD_MAGICNUMBER){ - // info->numActualFrames++; - // } - // else if(magicNumber==ZSTD_MAGIC_SKIPPABLE_START){ - // info->numSkippableFrames++; - // isSkippableFrame = 1; - // } - // const int checksumBitMask = 4; - // if(frameHeaderBuffer[1] & checksumBitMask){ - // DISPLAY("Uses checksum\n"); - // info->usesCheck = 1; - // } - - } return 0; }