mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
rtpsbcpay: Fix signed/unsigned comparison issue within GStreamer plugin
This commit is contained in:
parent
27a6b0abfe
commit
7fa03c0076
1 changed files with 1 additions and 2 deletions
|
@ -225,8 +225,7 @@ gst_rtp_sbc_pay_handle_buffer (GstBaseRTPPayload * payload, GstBuffer * buffer)
|
||||||
available = gst_adapter_available (sbcpay->adapter);
|
available = gst_adapter_available (sbcpay->adapter);
|
||||||
if (available + RTP_SBC_HEADER_TOTAL >=
|
if (available + RTP_SBC_HEADER_TOTAL >=
|
||||||
GST_BASE_RTP_PAYLOAD_MTU (sbcpay) ||
|
GST_BASE_RTP_PAYLOAD_MTU (sbcpay) ||
|
||||||
(sbcpay->min_frames != -1 && available >
|
(available > (sbcpay->min_frames * sbcpay->frame_length)))
|
||||||
(sbcpay->min_frames * sbcpay->frame_length)))
|
|
||||||
return gst_rtp_sbc_pay_flush_buffers (sbcpay);
|
return gst_rtp_sbc_pay_flush_buffers (sbcpay);
|
||||||
|
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
|
|
Loading…
Reference in a new issue