ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
24.72k stars 5.28k forks source link

Why define SrsRtspPacketPayloadType instead of SrsRtpPacketPayloadType? #3998

Closed suzp1984 closed 3 months ago

suzp1984 commented 3 months ago

https://github.com/ossrs/srs/blob/ce2ce1542fc1f989cd86a47bad5f5f6f385e0033/trunk/src/kernel/srs_kernel_rtc_rtp.hpp#L251-L270

I was confused when read above code, I don't understand why define SrsRtspPacketPayloadType instead of SrsRtpPacketPayloadType. I checked the commit git show a1d7fe46c1 and #2304 , maybe this is a mistake.