[FFmpeg-cvslog] r17181 - trunk/libavcodec/aac.c

superdump subversion
Thu Feb 12 14:47:21 CET 2009


Author: superdump
Date: Thu Feb 12 14:47:21 2009
New Revision: 17181

Log:
Give an error message when returning due to an unallocated channel element

Patch by Alex Converse ( alex converse gmail com )

Modified:
   trunk/libavcodec/aac.c

Modified: trunk/libavcodec/aac.c
==============================================================================
--- trunk/libavcodec/aac.c	Thu Feb 12 14:31:43 2009	(r17180)
+++ trunk/libavcodec/aac.c	Thu Feb 12 14:47:21 2009	(r17181)
@@ -1576,7 +1576,10 @@ static int aac_decode_frame(AVCodecConte
         }
         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) {




More information about the ffmpeg-cvslog mailing list