From: Andre Noll Date: Thu, 31 Dec 2009 03:34:50 +0000 (+0100) Subject: mp3dec: Fix EOF condition. X-Git-Tag: v0.4.2~234 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=e81e1c251f7793473cd6bc220f9a3476e4cf3dc0;p=paraslash.git mp3dec: Fix EOF condition. --- diff --git a/mp3dec_filter.c b/mp3dec_filter.c index d95758e4..9eed6393 100644 --- a/mp3dec_filter.c +++ b/mp3dec_filter.c @@ -216,7 +216,7 @@ static void mp3dec_post_select(__a_unused struct sched *s, struct task *t) return; if (need_bad_data_delay(pmd, len)) return; - if (pmd->input_len_barrier != 0 && btr_no_parent(btrn)) { + if (len <= pmd->input_len_barrier && btr_no_parent(btrn)) { ret = -E_MP3DEC_EOF; goto err; }