OpenIPC / smolrtsp

A lightweight real-time streaming library for IP cameras
https://openipc.github.io/smolrtsp/
MIT License
204 stars 44 forks source link

Allow parsing of rtp channel/port only #30

Closed viktorxda closed 1 week ago

flyrouter commented 1 week ago

We will try to apply this solution to hardware video players that are used together with OpenIPC IP cameras.

sumi-onoe commented 2 days ago

The parser only expected port ranges (like client_port=8523-8524) and could not handle single ports, resulting in Malformed Transport error when it was given a transport header such as: Transport: RTP/AVP;unicast;client_port=8523 in SETUP request. This PR modifies the parsing logic to handle single ports.