diff -urN 11-STYMulator-0.21a_protect_loopframe/src/stsoundlib/Ymload.cpp 12-STYMulator-0.21a_load_errors/src/stsoundlib/Ymload.cpp --- 11-STYMulator-0.21a_protect_loopframe/src/stsoundlib/Ymload.cpp 2010-04-21 23:36:06.479198054 +0200 +++ 12-STYMulator-0.21a_load_errors/src/stsoundlib/Ymload.cpp 2010-04-21 23:41:33.307194724 +0200 @@ -276,7 +276,7 @@ case 0x594d3362 /*'YM3b'*/: // Standart YM-Atari format + Loop info. pUD = (ymu8*)(pBigMalloc+fileSize-4); songType = YM_V3; - nbFrame = (fileSize-4)/14; + nbFrame = (fileSize-8)/14; loopFrame = ReadLittleEndian32(pUD); ymChip.setClock(ATARI_CLOCK); setPlayerRate(50);