We are currently experiencing downtime impacting viewing & cloning the Mesa repo, and some GitLab pages returning 503. Please see #freedesktop on IRC for more updates.

Commit 323dc466 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

mpegaudioparse: Fix compilation with gcc 7

gstmpegaudioparse.c: In function ‘gst_mpeg_audio_parse_reset’:
gstmpegaudioparse.c:209:3: error: ‘memset’ used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
   memset (mp3parse->xing_seek_table_inverse, 0, 256);
   ^~~~~~
gstmpegaudioparse.c: In function ‘gst_mpeg_audio_parse_handle_first_frame’:
gstmpegaudioparse.c:951:7: error: ‘memset’ used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]
       memset (mp3parse->xing_seek_table_inverse, 0, 256);
       ^~~~~~
parent e693d297
......@@ -205,8 +205,9 @@ gst_mpeg_audio_parse_reset (GstMpegAudioParse * mp3parse)
mp3parse->xing_total_time = 0;
mp3parse->xing_bytes = 0;
mp3parse->xing_vbr_scale = 0;
memset (mp3parse->xing_seek_table, 0, 100);
memset (mp3parse->xing_seek_table_inverse, 0, 256);
memset (mp3parse->xing_seek_table, 0, sizeof (mp3parse->xing_seek_table));
memset (mp3parse->xing_seek_table_inverse, 0,
sizeof (mp3parse->xing_seek_table_inverse));
mp3parse->vbri_bitrate = 0;
mp3parse->vbri_frames = 0;
......@@ -947,8 +948,9 @@ gst_mpeg_audio_parse_handle_first_frame (GstMpegAudioParse * mp3parse,
skip_toc:
data += 100;
} else {
memset (mp3parse->xing_seek_table, 0, 100);
memset (mp3parse->xing_seek_table_inverse, 0, 256);
memset (mp3parse->xing_seek_table, 0, sizeof (mp3parse->xing_seek_table));
memset (mp3parse->xing_seek_table_inverse, 0,
sizeof (mp3parse->xing_seek_table_inverse));
}
if (xing_flags & XING_VBR_SCALE_FLAG) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment