Unified · Split
| @@ -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; |