Skip to content

Commit c5d8188

Browse files
authored
Update stream.go
修复writeasc的bug
1 parent 1a947aa commit c5d8188

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stream.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ func (r *Stream) WriteASC(asc []byte) {
192192
} else {
193193
r.AudioTag.Payload = append(r.AudioTag.Payload[:2], asc...)
194194
}
195-
config1 := asc[2]
196-
config2 := asc[3]
195+
config1 := asc[0]
196+
config2 := asc[1]
197197
r.AudioInfo.SoundFormat = 10
198198
//audioObjectType = (config1 & 0xF8) >> 3
199199
// 1 AAC MAIN ISO/IEC 14496-3 subpart 4

0 commit comments

Comments
 (0)