rtcpbuffer: fix invalid read in validation of padding in rtcp packet

This commit is contained in:
Trond Andersen 2011-03-11 10:41:11 +01:00 committed by Sebastian Dröge
parent 0f8edca902
commit cec628a414

View file

@ -163,7 +163,7 @@ gst_rtcp_buffer_validate_data (guint8 * data, guint len)
goto wrong_length;
/* get padding */
pad_bytes = data[len - 1];
pad_bytes = data[data_len - 1];
if (data_len != pad_bytes)
goto wrong_padding;
}