feat(qmc): improve m4a & mp4 sniff

This commit is contained in:
Unlock Music Dev
2022-12-06 21:47:33 +08:00
parent 2c378d4d46
commit e9e63ce175
4 changed files with 52 additions and 9 deletions

View File

@ -90,7 +90,7 @@ func (d *Decoder) validateDecode() error {
return fmt.Errorf("qmc seek to start: %w", err)
}
buf := make([]byte, 16)
buf := make([]byte, 64)
if _, err := io.ReadFull(d.raw, buf); err != nil {
return fmt.Errorf("qmc read header: %w", err)
}