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
1591 }1591 }
1592 1592
1593 if (frame_bytes && i + frame_and_padding <= mp3_bytes &&1593 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))
1595 {1595 {
1596 *ptr_frame_bytes = frame_and_padding;1596 *ptr_frame_bytes = frame_and_padding;
1597 return i;1597 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