From: Andre Noll Date: Wed, 6 Jan 2010 23:25:14 +0000 (+0100) Subject: aacdec: Reset "consumed" at each iteration. X-Git-Tag: v0.4.2~186 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=fc65f69bcfca74994e837adebdbbc16117ee77e2;p=paraslash.git aacdec: Reset "consumed" at each iteration. --- 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;