ref: 49a4b5a41e3e1cb3361fcaae1f27762d287c2ca5
parent: f827f41c1636066ea0380fc79865199cdebe39f1
author: lieff <[email protected]>
date: Fri Jan 19 18:14:22 EST 2018
fix small match frame bug (scan up to MAX_FRAME_SYNC_MATCHES frames instead of ~4)
--- a/minimp3.h
+++ b/minimp3.h
@@ -1591,7 +1591,7 @@
}
if (frame_bytes && i + frame_and_padding <= mp3_bytes &&
- mp3d_match_frame(mp3, MINIMP3_MIN((frame_bytes + 1)*4, mp3_bytes - i), frame_bytes))
+ mp3d_match_frame(mp3, mp3_bytes - i, frame_bytes))
{
*ptr_frame_bytes = frame_and_padding;
return i;