shithub: mp3dec

Download patch

ref: 1bfe88f1727de76ab04eb79d2db8b9a7976afd84
parent: 84bd920604b9b2c0fad2e8ed18c51ba0e944cced
author: lieff <[email protected]>
date: Fri Sep 7 22:24:05 EDT 2018

make MAX_FRAME_SYNC_MATCHES externally configurable.

--- a/minimp3.h
+++ b/minimp3.h
@@ -47,7 +47,9 @@
 #include <string.h>
 
 #define MAX_FREE_FORMAT_FRAME_SIZE  2304    /* more than ISO spec's */
+#ifndef MAX_FRAME_SYNC_MATCHES
 #define MAX_FRAME_SYNC_MATCHES      10
+#endif /* MAX_FRAME_SYNC_MATCHES */
 
 #define MAX_L3_FRAME_PAYLOAD_BYTES  MAX_FREE_FORMAT_FRAME_SIZE /* MUST be >= 320000/8/32000*1152 = 1440 */