aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aac.c
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2009-02-12 13:47:21 +0000
committerRobert Swain <robert.swain@gmail.com>2009-02-12 13:47:21 +0000
commitb2d9d4a5310280e1e9ca3ae572d9fcc028c05081 (patch)
tree40e8409516134194a79649567489e79a0cd7f39f /libavcodec/aac.c
parent30272450f98473dee6f6d06e42cae37c3787ebf8 (diff)
downloadffmpeg-b2d9d4a5310280e1e9ca3ae572d9fcc028c05081.tar.gz
Give an error message when returning due to an unallocated channel element
Patch by Alex Converse ( alex converse gmail com ) Originally committed as revision 17181 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aac.c')
-rw-r--r--libavcodec/aac.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/aac.c b/libavcodec/aac.c
index 57bafda0a6..f803d79624 100644
--- a/libavcodec/aac.c
+++ b/libavcodec/aac.c
@@ -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) {