X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mp3dec_filter.c;h=92da4a5cbb9514d9279b3b39daa68ce783f2d585;hp=ce6cfbcb6e78eebe60764a5dc617cf5b89fd1b53;hb=bced94f9f81fdf355b61738e968aa8b61bfc36e7;hpb=ebe54cf6ee1b9c5daf7837cb618c299a5b5187e0 diff --git a/mp3dec_filter.c b/mp3dec_filter.c index ce6cfbcb..92da4a5c 100644 --- a/mp3dec_filter.c +++ b/mp3dec_filter.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2008 Andre Noll + * Copyright (C) 2005-2009 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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;