From fc65f69bcfca74994e837adebdbbc16117ee77e2 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 7 Jan 2010 00:25:14 +0100 Subject: [PATCH] aacdec: Reset "consumed" at each iteration. --- aacdec_filter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aacdec_filter.c b/aacdec_filter.c index e0ca6e22..a269240b 100644 --- a/aacdec_filter.c +++ b/aacdec_filter.c @@ -216,7 +216,7 @@ static void aacdec_post_select(__a_unused struct sched *s, struct task *t) int i, ret; unsigned char *p, *inbuf, *outbuffer; char *btr_buf; - size_t len, skip, consumed = 0, loaded, iqs; + size_t len, skip, consumed, loaded, iqs; next_buffer: t->error = 0; @@ -227,6 +227,7 @@ next_buffer: return; btr_merge(btrn, fn->min_iqs); len = btr_next_buffer(btrn, (char **)&inbuf); + consumed = 0; iqs = btr_get_input_queue_size(btrn); if (!padd->initialized) { unsigned long rate = 0; -- 2.39.5