Fix RTP H264 with two SEI in packet
This commit is contained in:
+3
-3
@@ -36,6 +36,7 @@ func RTPDepay(track *streamer.Track) streamer.WrapperFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(buf) == 0 {
|
if len(buf) == 0 {
|
||||||
|
for {
|
||||||
// Amcrest IP4M-1051: 9, 7, 8, 6, 28...
|
// Amcrest IP4M-1051: 9, 7, 8, 6, 28...
|
||||||
// Amcrest IP4M-1051: 9, 6, 1
|
// Amcrest IP4M-1051: 9, 6, 1
|
||||||
switch NALUType(payload) {
|
switch NALUType(payload) {
|
||||||
@@ -52,10 +53,9 @@ func RTPDepay(track *streamer.Track) streamer.WrapperFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
payload = payload[i:]
|
payload = payload[i:]
|
||||||
|
continue
|
||||||
if NALUType(payload) == NALUTypeIFrame {
|
|
||||||
buf = append(buf, ps...)
|
|
||||||
}
|
}
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user