mirror of
https://github.com/koush/scrypted.git
synced 2026-03-01 08:42:57 +00:00
common: ignore rtcp packets that may be erroneously in the rtp stream
This commit is contained in:
@@ -129,6 +129,10 @@ export async function startRtpForwarderProcess(console: Console, ffmpegInput: FF
|
||||
track.onRtp = rtp => {
|
||||
if (killDeferred.finished)
|
||||
return;
|
||||
const payloadType = rtp.readUint8(1) & 0x7f;
|
||||
// ignore rtcp.
|
||||
if (payloadType >= 72 && payloadType <= 76)
|
||||
return;
|
||||
old(rtp);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user