X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=aacdec_filter.c;h=ae3a90e6c908391869ed551d5443f8e570089306;hb=1e012cf40238883621692051a22fb9c7cad5e944;hp=956f338db741586e7ee784d2e3523a41783fbf25;hpb=d9e608504d9d0e71380907559546e211c4f0ce55;p=paraslash.git diff --git a/aacdec_filter.c b/aacdec_filter.c index 956f338d..ae3a90e6 100644 --- a/aacdec_filter.c +++ b/aacdec_filter.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2008 Andre Noll + * Copyright (C) 2006-2009 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -10,10 +10,14 @@ /** \file aacdec_filter.c paraslash's aac (m4a) decoder. */ -#include "para.h" +#include +#include +#include "para.h" #include "list.h" #include "sched.h" +#include "ggo.h" +#include "buffer_tree.h" #include "filter.h" #include "error.h" #include "string.h" @@ -61,7 +65,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) {