shithub: mp3dec

Download patch

ref: 56b65b935b96a5378c592cb27a627785c4c6e8f7
parent: 8c9e85546b3cc8e5d3e4f5531a0e262b15996c1e
author: lieff <lieff@users.noreply.github.com>
date: Sat Aug 4 08:29:19 EDT 2018

clear info only for MP4_MODE

--- a/minimp3_test.c
+++ b/minimp3_test.c
@@ -99,10 +99,10 @@
     double MSE = 0.0, psnr;
 
     mp3dec_file_info_t info;
-    memset(&info, 0, sizeof(info));
 #ifdef MP4_MODE
     frames_iterate_data d = { &mp3d, &info, 0 };
     mp3dec_init(&mp3d);
+    memset(&info, 0, sizeof(info));
     if (mp3dec_iterate(input_file_name, frames_iterate_cb, &d))
 #else
     if (mp3dec_load(&mp3d, input_file_name, &info, 0, 0))