Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
q191201771 committed May 16, 2024
1 parent 12f45c2 commit 79ae569
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/avc/avc.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ package avc

import (
"bytes"
"encoding/hex"
"io"

"github.com/q191201771/lal/pkg/base"
Expand Down Expand Up @@ -317,6 +318,7 @@ func ParseSpsPpsFromSeqHeaderWithoutMalloc(payload []byte) (sps, pps []byte, err
numOfPps := int(payload[index] & 0x1F)
index++
if numOfPps != 1 {
Log.Debugf("%s", hex.Dump(nazabytes.Prefix(payload, 128)))
return nil, nil, nazaerrors.Wrap(base.ErrAvc)
}
ppsLength := int(bele.BeUint16(payload[index:]))
Expand Down
1 change: 1 addition & 0 deletions pkg/logic/group__.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ func (group *Group) GetStat(maxsub int) base.StatGroup {
group.stat.StatSubs = append(group.stat.StatSubs, base.Session2StatSub(s))
}

//Log.Debugf("GetStat. len(group.hlsSubSessionSet)=%d", len(group.hlsSubSessionSet))
for s := range group.hlsSubSessionSet {
statSubCount++
if statSubCount > maxsub {
Expand Down

0 comments on commit 79ae569

Please sign in to comment.