Merge pull request #665 from knnniggett/rtp_ctrl
Don't fail if an unexpected rtp packet type is received
This commit is contained in:
commit
d9302ce345
|
@ -150,10 +150,15 @@ int RtpCtrlThread::recvPacket( const unsigned char *packet, ssize_t packetLen )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case RTCP_RR :
|
case RTCP_RR :
|
||||||
|
{
|
||||||
|
Error( "Received RTCP_RR packet." );
|
||||||
|
return( -1 );
|
||||||
|
}
|
||||||
default :
|
default :
|
||||||
{
|
{
|
||||||
Error( "Received unexpected packet type %d, ignoring", pt );
|
// Ignore unknown packet types. Some cameras do this by design.
|
||||||
return( -1 );
|
Debug( 5, "Received unexpected packet type %d, ignoring", pt );
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
consumed = sizeof(uint32_t)*(len+1);
|
consumed = sizeof(uint32_t)*(len+1);
|
||||||
|
|
Loading…
Reference in New Issue