ref: 4a65c4c6089475fbc51be0f91168cdc803a83b55
parent: 39d6e04864f152da185634697a778fb5e638ddc4
author: lieff <lieff@users.noreply.github.com>
date: Sat Aug 4 08:16:03 EDT 2018
check callback exists
--- a/minimp3_ex.h
+++ b/minimp3_ex.h
@@ -123,6 +123,8 @@
void mp3dec_iterate_buf(const uint8_t *buf, size_t buf_size, MP3D_ITERATE_CB callback, void *user_data)
{
+ if (!callback)
+ return;
mp3dec_frame_info_t frame_info;
memset(&frame_info, 0, sizeof(frame_info));
/* skip id3v2 */