Skip to content

Commit

Permalink
Update stream.go
Browse files Browse the repository at this point in the history
修复writeasc的bug
  • Loading branch information
langhuihui authored Jun 12, 2020
1 parent 1a947aa commit c5d8188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ func (r *Stream) WriteASC(asc []byte) {
} else {
r.AudioTag.Payload = append(r.AudioTag.Payload[:2], asc...)
}
config1 := asc[2]
config2 := asc[3]
config1 := asc[0]
config2 := asc[1]
r.AudioInfo.SoundFormat = 10
//audioObjectType = (config1 & 0xF8) >> 3
// 1 AAC MAIN ISO/IEC 14496-3 subpart 4
Expand Down

0 comments on commit c5d8188

Please sign in to comment.