1
0
mirror of https://github.com/garraflavatra/go-fmp.git synced 2025-06-28 04:25:11 +00:00
This commit is contained in:
2025-06-14 15:19:36 +02:00
parent d9ffc3e573
commit b94fa28ba9
7 changed files with 49 additions and 65 deletions

View File

@ -40,7 +40,6 @@ func OpenFile(path string) (*FmpFile, error) {
ctx.FileSize = uint(info.Size())
ctx.numSectors = uint64((ctx.FileSize / sectorSize) - 1)
ctx.Sectors = make([]*FmpSector, 0)
currentPath := make([]uint64, 0)
ctx.stream.Seek(2*sectorSize, io.SeekStart)
for {
@ -55,7 +54,7 @@ func OpenFile(path string) (*FmpFile, error) {
ctx.Sectors = append(ctx.Sectors, sector)
if sector.ID != 0 {
err = sector.processChunks(ctx.Dictionary, &currentPath)
err = sector.processChunks(ctx.Dictionary)
if err != nil {
return nil, err
}