From: qydysky Date: Wed, 5 Jun 2024 13:46:26 +0000 (+0000) Subject: Fix flv未接收到起始段 #118 X-Git-Tag: v0.14.5~11 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=26fd1e898e3f0188eb1c1a5c3443c26457a3b1a2;p=bili_danmu%2F.git Fix flv未接收到起始段 #118 --- diff --git a/Reply/stream.go b/Reply/stream.go index 3a994e2..b9735a7 100644 --- a/Reply/stream.go +++ b/Reply/stream.go @@ -785,6 +785,7 @@ func (t *M4SStream) saveStreamFlv() (e error) { } if len(front_buf) != 0 && len(t.first_buf) == 0 { t.first_buf = make([]byte, len(front_buf)) + copy(t.first_buf, front_buf) // fmt.Println("write front_buf") // t.Stream_msg.PushLock_tag(`data`, t.first_buf) t.msg.Push_tag(`load`, t)