Compare commits

...

2 Commits

Author SHA1 Message Date
ZHAAREY
2c70f6b1bf Merge pull request #1 from itouakirai/patch-1 2025-10-22 07:44:35 +08:00
itouakirai
04203e7466 fix: 当没有要嵌入的cover时,部分播放器无法播放 2025-10-22 05:22:34 +08:00

View File

@@ -748,6 +748,9 @@ func writePics(f *os.File, pics []*MP4Picture) error {
}
boxSize += int32(dataSize + 16)
}
if boxSize == 8 {
return nil
}
boxSizeBytes := putI32BE(boxSize)
_, err := f.Write(boxSizeBytes)
@@ -1135,3 +1138,4 @@ func (mp4 *MP4) actualWrite(tags *MP4Tags, _delStrings []string) error {
mp4.size = m.size
return nil
}