From c389dbf332edc9fa1c935e3e4ab8d1994fbc45c0 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sun, 30 Dec 2018 19:49:56 +0900 Subject: [PATCH] rtcpbuffer: Remove invalid sanity check Checking the address distance between given begin/end sequence doesn't make sense. They are output params. This is to fix weird failure of libs_rtp on Windows --- gst-libs/gst/rtp/gstrtcpbuffer.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gst-libs/gst/rtp/gstrtcpbuffer.c b/gst-libs/gst/rtp/gstrtcpbuffer.c index d47caa9e2c..b21650d5bf 100644 --- a/gst-libs/gst/rtp/gstrtcpbuffer.c +++ b/gst-libs/gst/rtp/gstrtcpbuffer.c @@ -2893,9 +2893,6 @@ gst_rtcp_packet_xr_get_prt_info (GstRTCPPacket * packet, if (end_seq) *end_seq = ((data[0] << 8) | data[1]); - if (block_len < (end_seq - begin_seq) + 2) - return FALSE; - return TRUE; }