common: ignore rtcp packets that may be erroneously in the rtp stream

This commit is contained in:
Koushik Dutta
2023-02-06 20:01:42 -08:00
parent 414b7825ad
commit 02ad295e12

View File

@@ -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);
}
}