From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Sat, 5 Nov 2022 14:11:12 +0000 (+0800) Subject: fix X-Git-Tag: v0.5.11~68 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=a27ac2188eab0eb453c45176744dcaf8e634a66e;p=bili_danmu%2F.git fix --- diff --git a/CV/Var.go b/CV/Var.go index c4fc30b..a5536e0 100644 --- 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) diff --git a/Reply/fmp4Decode.go b/Reply/fmp4Decode.go index 3dba14b..9b01973 100644 --- a/Reply/fmp4Decode.go +++ b/Reply/fmp4Decode.go @@ -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 }