Fix svc: Drop frame is earlier than current keyframe (#2196)

* Fix svc: Drop frame is earlier than current keyframe

* Log detail of dependencydescriptor
This commit is contained in:
cnderrauber
2023-10-27 13:57:03 +08:00
committed by GitHub
parent 60c78affda
commit 1f0ba21854
3 changed files with 24 additions and 2 deletions
+5
View File
@@ -45,6 +45,11 @@ func (fc *FrameChain) OnFrame(extFrameNum uint64, fd *dd.FrameDependencyTemplate
return false
}
if len(fd.ChainDiffs) <= fc.chainIdx {
fc.logger.Warnw("invalid frame chain diff", nil, "chanIdx", fc.chainIdx, "frame", extFrameNum, "fd", fd)
return fc.broken
}
// A decodable frame with frame_chain_fdiff equal to 0 indicates that the Chain is intact.
if fd.ChainDiffs[fc.chainIdx] == 0 {
if fc.broken {