mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-05-02 22:44:47 +00:00
jpegpay: consider header len when calculating payload len
Fixed https://bugzilla.gnome.org/show_bug.cgi?id=726777
This commit is contained in:
parent
94bfdc7a56
commit
2143a6e452
1 changed files with 7 additions and 1 deletions
|
@ -813,10 +813,16 @@ gst_rtp_jpeg_pay_handle_buffer (GstRTPBasePayload * basepayload,
|
|||
do {
|
||||
GstBuffer *outbuf;
|
||||
guint8 *payload;
|
||||
guint payload_size = (bytes_left < mtu ? bytes_left : mtu);
|
||||
guint payload_size;
|
||||
guint header_size;
|
||||
GstBuffer *paybuf;
|
||||
GstRTPBuffer rtp = { NULL };
|
||||
guint rtp_header_size = gst_rtp_buffer_calc_header_len (0);
|
||||
|
||||
/* The available room is the packet MTU, minus the RTP header length. */
|
||||
payload_size =
|
||||
(bytes_left < (mtu - rtp_header_size) ? bytes_left :
|
||||
(mtu - rtp_header_size));
|
||||
|
||||
header_size = sizeof (jpeg_header) + quant_data_size;
|
||||
if (dri_found)
|
||||
|
|
Loading…
Reference in a new issue