changeset 8813:13db7a524778 libavcodec

Give an error message when returning due to an unallocated channel element Patch by Alex Converse ( alex converse gmail com )
author superdump
date Thu, 12 Feb 2009 13:47:21 +0000
parents 541889e539b8
children ac7958d25361
files aac.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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) {