Fix RTSP input
This commit is contained in:
parent
1d4980dca1
commit
4d9f11fd8b
1 changed files with 2 additions and 0 deletions
|
@ -697,6 +697,8 @@ namespace SDP{
|
||||||
uint8_t nalType = (buffer[4] & 0x1F);
|
uint8_t nalType = (buffer[4] & 0x1F);
|
||||||
if (nalType == 9 && len < 20){return;}// ignore delimiter-only packets
|
if (nalType == 9 && len < 20){return;}// ignore delimiter-only packets
|
||||||
switch (nalType){
|
switch (nalType){
|
||||||
|
case 6: //SEI
|
||||||
|
return;
|
||||||
case 7: // SPS
|
case 7: // SPS
|
||||||
if (tracks[track].spsData.size() != len - 4 ||
|
if (tracks[track].spsData.size() != len - 4 ||
|
||||||
memcmp(buffer + 4, tracks[track].spsData.data(), len - 4) != 0){
|
memcmp(buffer + 4, tracks[track].spsData.data(), len - 4) != 0){
|
||||||
|
|
Loading…
Add table
Reference in a new issue