From a27ac2188eab0eb453c45176744dcaf8e634a66e Mon Sep 17 00:00:00 2001 From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Sat, 5 Nov 2022 22:11:12 +0800 Subject: [PATCH] fix --- CV/Var.go | 2 +- Reply/fmp4Decode.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.39.2