X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mp3dec_filter.c;h=92da4a5cbb9514d9279b3b39daa68ce783f2d585;hp=90293f0a7e0e76dd2b53daf5901b4f185533861d;hb=b6100d88b5a03e824991b4a5bfd90b0e951e8d2b;hpb=00e4d4da1b2c00da139b09d3ed4ab9ad9fba2691 diff --git a/mp3dec_filter.c b/mp3dec_filter.c index 90293f0a..92da4a5c 100644 --- a/mp3dec_filter.c +++ b/mp3dec_filter.c @@ -84,8 +84,8 @@ next_frame: out: if (pmd->stream.next_frame) { /* we still have some data */ size_t off = pmd->stream.bufend - pmd->stream.next_frame; -// PARA_INFO_LOG("off: %zd, rate: %u, returning %zd\n", off, -// fn->fc->samplerate, copy - off); + if (fn->loaded + 16384 <= fn->bufsize && off > 2048) + goto next_frame; return copy - off; } return copy;