mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
sdpmessage: Parse zero clock-rate as default
It seems there is at least one broken RTSP server out there that returns a clock-rate of 0. Let's just ignore it and use the default in that case. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5171>
This commit is contained in:
parent
3c32ef4854
commit
f3cd913b3c
1 changed files with 3 additions and 1 deletions
|
@ -3641,7 +3641,9 @@ gst_sdp_media_get_caps_from_media (const GstSDPMedia * media, gint pt)
|
|||
|
||||
/* check if we have a rate, if not, we need to look up the rate from the
|
||||
* default rates based on the payload types. */
|
||||
if (rate == -1) {
|
||||
/* Some broken RTSP server puts a rate of 0, also use the default in that
|
||||
* case */
|
||||
if (rate <= 0) {
|
||||
const GstRTPPayloadInfo *info;
|
||||
|
||||
if (GST_RTP_PAYLOAD_IS_DYNAMIC (pt)) {
|
||||
|
|
Loading…
Reference in a new issue