feat(qmc): improve m4a & mp4 sniff

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

No files matched your search

+1 -1
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)
}