Update merge.go

尝试修复画面与声音不同步的问题
main v1.5.11
orestonce 2022-08-04 10:38:29 +08:00 committed by GitHub
parent 763a5aa59d
commit 5679a5dff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ func MergeTsFileListToSingleMp4(req MergeTsFileListToSingleMp4_Req) (err error)
return
}
if cid == mpeg2.TS_STREAM_AAC {
audioTimestamp = pts
codec.SplitAACFrame(frame, func(aac []byte) {
if aacSampleRate == -1 {
adts := codec.NewAdtsFrameHeader()