We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6425e93 commit 1841af9Copy full SHA for 1841af9
shared-module/audiomp3/MP3Decoder.c
@@ -53,7 +53,7 @@
53
*/
54
STATIC bool mp3file_update_inbuf_always(audiomp3_mp3file_obj_t *self) {
55
// If we didn't previously reach the end of file, we can try reading now
56
- if (!self->eof) {
+ if (!self->eof && self->inbuf_offset != 0) {
57
58
// Move the unconsumed portion of the buffer to the start
59
uint8_t *end_of_buffer = self->inbuf + self->inbuf_length;
0 commit comments