]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Give an error message when returning due to an unallocated channel element
authorsuperdump <superdump@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 12 Feb 2009 13:47:21 +0000 (13:47 +0000)
committersuperdump <superdump@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 12 Feb 2009 13:47:21 +0000 (13:47 +0000)
Patch by Alex Converse ( alex converse gmail com )

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17181 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/aac.c

index 57bafda0a61c1d7523c35efa13febf067197b5e9..f803d79624eefe4036bbdf727704c3a59812b858 100644 (file)
@@ -1576,7 +1576,10 @@ static int aac_decode_frame(AVCodecContext * avccontext, void * data, int * data
         }
         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) {