mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
rtpjpegpay: Fix uninitialized variable compiler warning
Fixes bug #629018.
This commit is contained in:
parent
2148b2db0a
commit
640cb863d4
1 changed files with 7 additions and 1 deletions
|
@ -375,7 +375,7 @@ gst_rtp_jpeg_pay_read_sof (GstRtpJPEGPay * pay, const guint8 * data,
|
||||||
|
|
||||||
/* we need at least 17 bytes for the SOF */
|
/* we need at least 17 bytes for the SOF */
|
||||||
if (off + 17 > size)
|
if (off + 17 > size)
|
||||||
goto wrong_length;
|
goto wrong_size;
|
||||||
|
|
||||||
sof_size = gst_rtp_jpeg_pay_header_size (data, off);
|
sof_size = gst_rtp_jpeg_pay_header_size (data, off);
|
||||||
if (sof_size < 17)
|
if (sof_size < 17)
|
||||||
|
@ -448,6 +448,12 @@ gst_rtp_jpeg_pay_read_sof (GstRtpJPEGPay * pay, const guint8 * data,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
|
wrong_size:
|
||||||
|
{
|
||||||
|
GST_ELEMENT_ERROR (pay, STREAM, FORMAT,
|
||||||
|
("Wrong size %u (needed %u).", size, off + 17), (NULL));
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
wrong_length:
|
wrong_length:
|
||||||
{
|
{
|
||||||
GST_ELEMENT_ERROR (pay, STREAM, FORMAT,
|
GST_ELEMENT_ERROR (pay, STREAM, FORMAT,
|
||||||
|
|
Loading…
Reference in a new issue