# HG changeset patch # User superdump # Date 1234446441 0 # Node ID 13db7a524778940a3003b375ba4141140e402cd3 # Parent 541889e539b8c196246c748d713b34d1ea878c3b Give an error message when returning due to an unallocated channel element Patch by Alex Converse ( alex converse gmail com ) diff -r 541889e539b8 -r 13db7a524778 aac.c --- a/aac.c Thu Feb 12 13:31:43 2009 +0000 +++ b/aac.c Thu Feb 12 13:47:21 2009 +0000 @@ -1576,7 +1576,10 @@ } if(elem_type < TYPE_DSE) { if(!ac->che[elem_type][elem_id]) + { + av_log(ac->avccontext, AV_LOG_ERROR, "channel element %d.%d is not allocated\n", elem_type, elem_id); return -1; + } } switch (elem_type) {