iamscottxu / obs-rtspserver

RTSP server plugin for obs-studio
https://obsproject.com/forum/resources/obs-rtspserver.1037/
GNU General Public License v2.0
441 stars 55 forks source link

Fix format-security warning/error #64

Closed tytan652 closed 3 years ago

tytan652 commented 3 years ago

Fixes #58 The absence of the formating of the two %u from rtpmap_fmt emits a warning which result in a error in with some distribution default flags.

This fix might need further testing. I only tested by putting a video as a source in OBS start the RTSP stream and open it with VLC. The video and audio seems right.

Edit: with this fix it compiles on ArchLinux