History

fix small match frame bug (scan up to MAX_FRAME_SYNC_MATCHES frames instead of ~4)

lieff committed 8 years ago

Commit 49a4b5a1 parent f827f411 file · +1 −1Browse files

Unified · Split

minimp3.h+1−1
@@ -1591,7 +1591,7 @@ static int mp3d_find_frame(const uint8_t *mp3, int mp3_bytes, int *free_format_b · 1590 unmodified lines
15911591 }
15921592
15931593 if (frame_bytes && i + frame_and_padding <= mp3_bytes &&
1594− mp3d_match_frame(mp3, MINIMP3_MIN((frame_bytes + 1)*4, mp3_bytes - i), frame_bytes))
1594+ mp3d_match_frame(mp3, mp3_bytes - i, frame_bytes))
15951595 {
15961596 *ptr_frame_bytes = frame_and_padding;
15971597 return i;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t