]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
fix
authorqydysky <32743305+qydysky@users.noreply.github.com>
Sat, 5 Nov 2022 14:11:12 +0000 (22:11 +0800)
committerqydysky <32743305+qydysky@users.noreply.github.com>
Sat, 5 Nov 2022 14:11:12 +0000 (22:11 +0800)
CV/Var.go
Reply/fmp4Decode.go

index c4fc30bb1c4a81e54c3a4e2fc468ebf690ac2c10..a5536e06fe861247f57d447aa37c6d086bd8f7c1 100644 (file)
--- a/CV/Var.go
+++ b/CV/Var.go
@@ -145,7 +145,7 @@ func (t *Common) loadConf(customConf string) error {
        }
 
        if customConf != "" {
-               if strings.Contains(customConf, "http") {
+               if strings.Contains(customConf, "http:") || strings.Contains(customConf, "https:") {
                        //从网址读取
                        req := t.ReqPool.Get()
                        r := req.Item.(*reqf.Req)
index 3dba14b24156ea78e7bc3d4128b8ebe915f0ea45..9b019736416576f1c86999e167a36a53d3a6e06a 100644 (file)
@@ -277,7 +277,7 @@ func (t *Fmp4Decoder) Seach_stream_fmp4(buf []byte) (keyframes [][]byte, last_av
                cu = mdatI
                mdatE := mdatI + int(F.Btoi(buf, mdatI, 4))
                if mdatE > len(buf) {
-                       err = errors.New("mdat包破损")
+                       // err = errors.New("mdat包破损")
                        break
                }