X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=aacdec_filter.c;h=55f7ea25fc43b32c9d1c5a28288b867e2151a028;hp=5b2d2a27c82d6a563025308b3a2e3c8c90929cde;hb=f652ce6afe7f6fd0e42814505234cbf4321a736e;hpb=aea6128f919fcfd94be25a7859e8043b7ddf6b3e diff --git a/aacdec_filter.c b/aacdec_filter.c index 5b2d2a27..55f7ea25 100644 --- a/aacdec_filter.c +++ b/aacdec_filter.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2011 Andre Noll + * Copyright (C) 2006-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -11,7 +11,6 @@ /** \file aacdec_filter.c paraslash's aac (m4a) decoder. */ #include -#include #include "para.h" #include "list.h" @@ -167,12 +166,15 @@ next_buffer: ret = -E_AAC_DECODE; if (padd->error_count++ > MAX_ERRORS) goto err; - PARA_ERROR_LOG("frame_error: %d (%s), consumed: %zu + %zd + %lu\n", - err, NeAACDecGetErrorMessage(padd->frame_info.error), + /* Suppress non-fatal bitstream error message at BOF/EOF */ + if (len < fn->min_iqs || padd->consumed_total == 0) { + consumed = len; + goto success; + } + PARA_ERROR_LOG("%s\n", NeAACDecGetErrorMessage(err)); + PARA_ERROR_LOG("consumed: %zu + %zd + %lu\n", padd->consumed_total, consumed, padd->frame_info.bytesconsumed); - PARA_ERROR_LOG("%s\n", NeAACDecGetErrorMessage( - padd->frame_info.error)); if (consumed < len) consumed++; /* catch 21 */ goto success; @@ -202,7 +204,7 @@ out: err: assert(ret < 0); t->error = ret; - btr_remove_node(btrn); + btr_remove_node(&fn->btrn); } /**