vp8 temporal layer selection with dependency descriptor (#3302)

* vp8 with dd

* make temporal layer selection work with DD

* fix test

---------

Co-authored-by: boks1971 <raja.gobi@tutanota.com>
This commit is contained in:
cnderrauber
2025-01-03 21:26:03 +08:00
committed by GitHub
co-authored by boks1971
parent dd87f1ccc4
commit 384e21abc0
4 changed files with 9 additions and 6 deletions
@@ -37,13 +37,13 @@ func (v *VP8) Select(extPkt *buffer.ExtPacket, current int32, target int32) (thi
}
vp8, ok := extPkt.Payload.(buffer.VP8)
if !ok || !vp8.T {
if !ok {
return
}
tid := int32(vp8.TID)
tid := extPkt.Temporal
if current < target {
if tid > current && tid <= target && vp8.S && vp8.Y {
if tid > current && tid <= target && vp8.S {
this = tid
next = tid
}