Add btr support to the oggdec filter.
[paraslash.git] / mp3dec_filter.c
index d95758e..9eed639 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;
        }