shithub: mp3dec

Download patch

ref: cfa88477ffd138e8245c310aa10224b4f7b7ed3b
parent: 644d5e8f9b80116956ea543cd1f80de2ea48e7f5
author: lieff <lieff@users.noreply.github.com>
date: Tue Jan 30 09:44:51 EST 2018

fix "may be used uninitialized" warnings.

--- a/minimp3_test.c
+++ b/minimp3_test.c
@@ -45,7 +45,7 @@
 static void decode_file(FILE *file_mp3, FILE *file_ref, FILE *file_out, const int wave_out)
 {
     static mp3dec_t mp3d;
-    mp3dec_frame_info_t info;
+    mp3dec_frame_info_t info = {};
     int i, data_bytes, samples, total_samples = 0, maxdiff = 0, mp3_size, ref_size;
     double MSE = 0.0, psnr;
     unsigned char *buf_mp3 = preload(file_mp3, &mp3_size), *buf_ref = preload(file_ref, &ref_size);