RTSPlib
THIS CODE IS PROBABLY BAD. It was basically my first time writing C. Maybe you'll still find this library useful as a reference, though?
RTSP parser written in C. Alternatively, "why strings in C89 aren't fun". https://en.wikipedia.org/wiki/Real_Time_Streaming_Protocol
Note: This was my preliminary effort on RTSP parsing. I now maintain the code elsewhere - I've since spruced it up and integrated it into Moonlight Game Streaming. https://github.com/moonlight-stream/moonlight-common-c/
If you're looking at this RTSP parser for a reference:
It seems like a fair amount of people come here for a reference to an RTSP parser. I hope to one day update this repo, but I encourage you to look at the RTSP files in Moonlight Common C where it's maintained now instead of this one. I like to leave this repository here anyway since it makes it easier for people who are looking for something like this to find it on the internet. https://github.com/moonlight-stream/moonlight-common-c/blob/master/src/RtspParser.c