mirror of
https://github.com/zhaarey/go-mp4tag.git
synced 2025-10-23 15:11:07 +00:00
Update mp4tag.go
This commit is contained in:
@@ -224,7 +224,7 @@ func createAndWrite(h *mp4.ReadHandle, w *mp4.Writer, ctx mp4.Context, _tags *Ta
|
||||
if _tags.DiskNumber > 0 {
|
||||
disk := make([]byte, 8)
|
||||
binary.BigEndian.PutUint32(disk, uint32(_tags.DiskNumber))
|
||||
if _tags.DiskTotal != 0 {
|
||||
if _tags.DiskTotal > 0 {
|
||||
binary.BigEndian.PutUint16(disk[4:], uint16(_tags.DiskTotal))
|
||||
}
|
||||
err = writeMeta(w, atomsMap["Disk"], ctx, disk)
|
||||
|
||||
Reference in New Issue
Block a user