]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Fix flv未接收到起始段 #118
authorqydysky <qydysky@foxmail.com>
Wed, 5 Jun 2024 13:46:26 +0000 (13:46 +0000)
committerqydysky <qydysky@foxmail.com>
Wed, 5 Jun 2024 13:46:26 +0000 (13:46 +0000)
Reply/stream.go

index 3a994e29e987d6e2d335b9103f30cf9f1ef87260..b9735a7669471da7caa55e11989565231d04aa35 100644 (file)
@@ -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)