mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
flacdec: add const where appropriate
This commit is contained in:
parent
9843b08e53
commit
592c34336e
1 changed files with 3 additions and 2 deletions
|
@ -317,7 +317,7 @@ static const guint8 crc8_table[256] = {
|
|||
};
|
||||
|
||||
static guint8
|
||||
gst_flac_calculate_crc8 (guint8 * data, guint length)
|
||||
gst_flac_calculate_crc8 (const guint8 * data, guint length)
|
||||
{
|
||||
guint8 crc = 0;
|
||||
|
||||
|
@ -332,7 +332,8 @@ gst_flac_calculate_crc8 (guint8 * data, guint length)
|
|||
/* FIXME: for our purposes it's probably enough to just check for the sync
|
||||
* marker - we just want to know if it's a header frame or not */
|
||||
static gboolean
|
||||
gst_flac_dec_scan_got_frame (GstFlacDec * flacdec, guint8 * data, guint size)
|
||||
gst_flac_dec_scan_got_frame (GstFlacDec * flacdec, const guint8 * data,
|
||||
guint size)
|
||||
{
|
||||
guint headerlen;
|
||||
guint sr_from_end = 0; /* can be 0, 8 or 16 */
|
||||
|
|
Loading…
Reference in a new issue