Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: "3"

vars:
VERSION: "v1.7.0"
VERSION: "v1.7.1"

tasks:
clean:
Expand Down
6 changes: 4 additions & 2 deletions pkg/scte35/audio_descriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (sd *AudioDescriptor) encode() ([]byte, error) {
iow.PutUint32(8, AudioDescriptorTag)
iow.PutUint32(8, uint32(length))
iow.PutUint32(32, CUEIdentifier)
iow.PutUint32(8, uint32(len(sd.AudioChannels)))
iow.PutUint32(4, uint32(len(sd.AudioChannels)))
iow.PutUint32(4, Reserved)
for _, ad := range sd.AudioChannels {
iow.PutUint32(8, ad.ComponentTag)
Expand All @@ -90,7 +90,9 @@ func (sd *AudioDescriptor) encode() ([]byte, error) {
iow.PutUint32(4, ad.NumChannels)
iow.PutBit(ad.FullSrvcAudio)
}
return buf, nil

err := iow.Flush()
return buf, err
}

// descriptorLength returns the descriptor_length
Expand Down
Loading
Loading