File tree 2 files changed +4
-10
lines changed
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -73,14 +73,8 @@ func (tb *tsBuffer) Reset() {
73
73
74
74
func tsContinuityUpdate (tcm map [int ]int , pid int , current int ) bool {
75
75
prev , prevFound := tcm [pid ]
76
- valid := (prevFound && ((prev + 1 )& 0xf == current )) || current == 0
77
- if valid {
78
- tcm [pid ] = current
79
- return true
80
- }
81
- if prevFound {
82
- delete (tcm , pid )
83
- }
76
+ valid := prevFound && ((prev + 1 )& 0xf == current )
77
+ tcm [pid ] = current
84
78
return valid
85
79
}
86
80
Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ func tsPacketDecode(d *decode.D) any {
59
59
60
60
switch {
61
61
case prevFound && (prev + 1 )& 0xf == current :
62
- s .Description = "valid "
62
+ s .Description = "continuous "
63
63
case prevFound :
64
- s .Description = "invalid "
64
+ s .Description = "non-continuous "
65
65
default :
66
66
s .Description = "unknown"
67
67
}
You can’t perform that action at this time.
0 commit comments