From: Andre Noll Date: Sat, 28 Feb 2009 11:45:51 +0000 (+0100) Subject: aacdec: Do not fail on emtpy buffers. X-Git-Tag: v0.3.4~57^2~17 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=d4f00ccce225a821023321f146efbb095de8d609;p=paraslash.git aacdec: Do not fail on emtpy buffers. --- diff --git a/aacdec_filter.c b/aacdec_filter.c index d9226b0d..1ceca1fc 100644 --- a/aacdec_filter.c +++ b/aacdec_filter.c @@ -62,7 +62,10 @@ static ssize_t aacdec(char *input_buffer, size_t len, struct filter_node *fn) if (fn->loaded > fn->bufsize * 3 / 5) return 0; - if (len < 2048 && !*fc->input_error) + ret = *fc->input_error; + if (ret < 0) + return ret; + if (len < 2048) return 0; if (!padd->initialized) {