]> git.tue.mpg.de Git - paraslash.git/commitdiff
mp3dec: Fix EOF condition.
authorAndre Noll <maan@systemlinux.org>
Thu, 31 Dec 2009 03:34:50 +0000 (04:34 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 31 Dec 2009 03:34:50 +0000 (04:34 +0100)
mp3dec_filter.c

index d95758e4238ef77989e969cc5ff210d0d6dd5504..9eed6393c53f58b9bd8fa7e295a14553b7b4f6af 100644 (file)
@@ -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;
        }